Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
added a Text component #18495
This addition provides a
This component is usable on web AND mobile, including styles.
To keep this PR small and easily reviewable I haven't included the following additions that I'll attempt to add in a future PR:
Related PR: #18244
How has this been tested?
I've written a few tests for web and react-native and manually tested the web component in
See the storybook.
Types of changes
New feature - mixins and a component for reusing/composing typography consistently
@jameslnewell Thank you so much for adding this!
I am incredibly excited for this particular component. Something that renders text may seem trivial.. but there are many benefits as we start using this throughout the system. The folks within the native mobile world have already enjoyed the benefits of this.
In the future, I could see us enhancing this primitive with features like
@ItsJonQ since the mobile variant is a
Colors is something I definitely want to add in a followup PR!