Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

support for style components #127

Open
SrwaHariri opened this issue Apr 8, 2021 · 0 comments
Open

support for style components #127

SrwaHariri opened this issue Apr 8, 2021 · 0 comments

Comments

@SrwaHariri
Copy link

SrwaHariri commented Apr 8, 2021

i figured it out !

we can actually assign style component to it ,
my code setting :

 const ReactCodeInputStyling = styled(ReactCodeInput)`
border: 2px solid green;
`
    const props = {
        inputStyle: {
        width: '22px',
        height: '45px',
        margin: '0 2.5px',
        background: 'grey',
        fontSize: '32px',
        textAlign: 'center',
        textTransform: 'uppercase',
        border: '0',
        borderRadius: '2px',
      },
      }
<ReactCodeInputStyling fields={4}  type="string" {...props} />
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant