Skip to contentSkip to navigationSkip to topbar
Paste assistant Assistant
Figma
Star

Example Text

Version 1.0.0GithubStorybook

Example Text is a stylized text wrapper that distinguishes user input examples from body text.

Component preview theme
<>
<Paragraph>When submitting feedback about your experience, provide specific details to help us understand your needs and improve our offerings. For example:</Paragraph>
<ExampleText>The service was quick and efficient, but I would like more options in the menu.</ExampleText>
</>

Guidelines

Guidelines page anchor

About Example Text

About Example Text page anchor

Example Text represents contextual examples that guide users on what type of information to enter or how to respond within a system.

Use Example Text so users can easily differentiate between examples and regular text or code blocks. It also reduces the chances of users overlooking important examples.

How to decide which components to use to make your text stand out

How to decide which components to use to make your text stand out page anchor
ComponentUsageExample
Example TextUse when you want to provide contextual examples of user input.This is an Example Text that guides users on how to respond to a system
BlockquoteUse to highlight quotations from an external source or customer feedback.
This is a Blockquote pulled from an outside source.

Google

Code BlockUse when you need to display blocks of code and when the user needs to copy a command to put it into a CLI.
const accountSID = process.env.TWILIO_ACCOUNT_SID
Inline CodeUse to emphasize short, inline pieces of computer code such as variable names and function calls.console.log(mySustainabilityGoals)
Help TextUse below a form field to help users prevent an error and describe what makes the form field successful.
Use your work email address.
CalloutUse a Callout to highlight any other important information.
(information)

Heads up!

This is some information you need to know.

Use Example Text to show examples of user input, especially in instructions, or to help users fill out forms.

Component preview theme
<>
<Paragraph>When submitting feedback about your experience, provide specific details to help us understand your needs and improve our offerings. For example:</Paragraph>
<ExampleText>The service was quick and efficient, but I would like more options in the menu.</ExampleText>
</>

Example Text can also be used inline in a Paragraph in cases where the example supports the sentence but isn’t the primary focus, maintaining the conversational tone.

Component preview theme
<Paragraph>To create your account, provide your full name, a valid email address, and a secure password. Your password must contain at least eight characters, including uppercase letters, lowercase letters, numbers, and a special character. For example, <ExampleText>!Password@123</ExampleText>. You may be asked to verify your email address by clicking a link sent to your inbox.</Paragraph>
Do

Use a prefix like “For example:” followed by Example Text to give users better context that the content is an example.

Don't

Don't use Example Text to highlight important information, use Callout or bold text instead.

Do

Use common editorial styles when example text doesn’t require special emphasis.

Don't

Do not use Example Text when you want the user to copy a command to put it into CLI, use Code Block instead.