We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This would make simple inline-styles more accessible. Right now if I want to add a center alignment to Text, I would need to do either:
const CenteredText = styled(Text.Container)` text-align: center; `; ... <Text StyledContainer={CenteredText}>Hello World</Text>
or
<Text containerProps={{ style: { textAlign: 'center' }}}>Hello World</Text>
The proposed version would be:
<Text containerStyles={{ textAlign: 'center' }}>Hello World</Text>
The text was updated successfully, but these errors were encountered:
I would think that the layering would be: (each one overwrites the previous one)
Sorry, something went wrong.
No branches or pull requests
This would make simple inline-styles more accessible. Right now if I want to add a center alignment to Text, I would need to do either:
or
The proposed version would be:
The text was updated successfully, but these errors were encountered: