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.

Installation

Installation page anchor
yarn add @twilio-paste/example-text - or - yarn add @twilio-paste/core
import { ExampleText } from '@twilio-paste/core/example-text';

const ExampleTextExample = () => {
  return (
    <ExampleText>Example text</ExampleText>
  );
};

ExampleText

ExampleText page anchor

element

Overrides the default element name to apply unique styles with the Customization Provider

Type
string
Default
'EXAMPLE_TEXT'