Skip to content

Billing Console moving to Paste #1600

Answered by SiTaggart
andoyle asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @andoyle

Great news on moving billing console over to Paste! Lots of things to cover on this one.

Creating text

Starting with the construction of the text itself, it's perfectly acceptable to use the Text component here, probably your best option. I love the attention to detail on semantics 🙌🏼 ! In this case I wouldn't suggest using a heading at all, a span would be fine. But if you really wanted to go above and beyond, a description list would be best as it's a key value pair.

<dl>
  <dt>Current balance</dt>
  <dd>+$2000</dd>
<dl>

You can achieve that as you might imagine with Box and/or Text

<Box as="dl">
  <Text as="dt">Current balance</Text>
  <Text as="dd">+$2000</Text>
<Box>

To…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@andoyle
Comment options

@SiTaggart
Comment options

@andoyle
Comment options

@SiTaggart
Comment options

Answer selected by SiTaggart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants