Skip to content

[6.x] Add a Text component#14247

Open
jaygeorge wants to merge 2 commits into6.xfrom
text-component
Open

[6.x] Add a Text component#14247
jaygeorge wants to merge 2 commits into6.xfrom
text-component

Conversation

@jaygeorge
Copy link
Contributor

Description of the Problem

Sometimes it would be handy for users to have a <Text> component that lets you specify options like strong, subtle etc etc, for when you want to style text inside a table, or inside a widget.

For example, here you might want to make the callback url and last received to be a "subtle" text variation
image

What this PR Does

  • Adds a text UI component for rendering styled text with consistent variants and sizes
  • Renders as a by default, but configurable via the as prop (span, p, div)

@ryanmitchell
Copy link
Contributor

thank you for this ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants