Change type signature of the SimpleLink component
See original GitHub issueChange type signature from:
const BaseSimpleLink = styled<"a" | "button">("button", {
shouldForwardProp: prop => !["color_", "left_", "right_"].includes(prop),
})
To:
const BaseSimpleLink = (styled<"a" | "button">).button``
The .button
syntax automatically filters props and make code much cleaner.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Simplelink Sign Counter Changed flag - Bluetooth forum - TI E2E
Simplelink Sign Counter Changed flag ... Does the device signature change frequently? ... The sign counter is used as part of the CSRK....
Read more >Change Signature - Documentation for Visual Assist
You can use Change Signature to modify all parts of a signature, including: Method name; Return type; Visibility; Parameter names; Parameter types; Parameter ......
Read more >Sign an e-signature Request - FileInvite Help
How to use our e-signature feature to sign off documentation that has been ... Method 2: Type your name and have a signature...
Read more >Sasukepedia:Signatures | Sasukepedia Wiki | Fandom
A signature is, by default, a simple link to the user page of the ... In the "Signature" edit box, add {{the template...
Read more >TV - Simplink Function - LG
TV - Simplink Function · Immediate playback · Controlling devices with the TV remote control · Automatic switch-off · Auto Power On ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Let me help you here a bit. What I would do first is find the type definition. For example in IDE (in my case vscode) <kbd>cmd</kbd> + click on
styled
<kbd>cmd</kbd> + click on
CreateStyled
<kbd>cmd</kbd> + click on
CreateStyled
as you can see param type here is
Tag
(<Tag, ExtraProps>()
).Let’s see definition of
styled.button
:as you can see
button
comes with predefined “tag” type, so you can’t change it like this(styled<"a" | "button">).button
.Great! So shall we close this issue then?