How to attach attributes #331
Unanswered
jasonkuhrt
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I found this workaround but it doesn't work with intellisense currently: import styled from 'styled-components'
import tw from 'twin.macro'
export const TextInput = tw(styled.input.attrs({ type: 'text' })``)`border` |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://styled-components.com/docs/basics#attaching-additional-props
This does not seem to work. No static or runtime errors, yet no effect either (in a Nextjs app context).
Beta Was this translation helpful? Give feedback.
All reactions