Skip to content

Code block and showing examples #1951

Answered by kate-porter
mindytom asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @mindytom! Thanks for these questions—answers below:

  1. You are correct that there is no code block component yet, and we don't have any formal recommendation for styling in the meantime, but you can definitely build it using Paste (using Box and Text). The code block you found in Messaging is probably the most recent one, so modeling after that is a good call. I have a preference for Option 1, because that's most similar to Messaging and what we've been exploring for a Copy pattern, but I don't know enough about the product to know whether putting the code into a Disclosure is the right move for the customer or not, so that's totally your call. If you do go with Option 1, my only recom…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mindytom
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