style-guide
style-guide copied to clipboard
Additional margin* props
<Flex />
component has margin*
props with predefined values.
IMHO those should also go to components as Headline
& Text
etc.
WDYT?
@mpacholec I am not really sure about this solution. I guess it can be achieved by using flex margins. I image you would like to have something like: <p class="sg-text sg-text--margin-left-xs">some text</p>
?
@mpacholec I am not really sure about this solution. I guess it can be achieved by using flex margins. I image you would like to have something like:
<p class="sg-text sg-text--margin-left-xs">some text</p>
?
Yup that is what I meant. I think it would be nice to have unified margin/padding props across all* components.
e.g.
<Text marginTop="xxs">SOME TEXT</Text>