--- title: Typography sidebar_label: Typography --- import { StoryWithControls } from '../../../src/components/StorybookWrapper'; # Typography Typography is a component for displaying text with various styles and formats. It includes subcomponents like Title, Paragraph, and Link. ## Live Example ## Try It Edit the code below to experiment with the component: ```tsx live function Demo() { return (
Default Text
Secondary
Success
Warning
Danger
Code
Keyboard
Marked
Underline
Deleted
Strong
Italic
); } ``` ## All Subcomponents ```tsx live function AllSubcomponents() { return (
Typography Components The Typography component includes several subcomponents for different text needs. Use Title for headings, Text for inline text styling, and Paragraph for block content. Learn more about Apache Superset
); } ``` ## Text Styling Options ```tsx live function TextStyles() { return (
Code style Keyboard style Highlighted text Underlined text Deleted text Bold text Italic text Success type Warning type Danger type
); } ``` ## Props | Prop | Type | Default | Description | |------|------|---------|-------------| | `children` | `string` | `"Sample Text"` | The text content. | | `code` | `boolean` | `false` | Code style. | | `copyable` | `boolean` | `false` | Whether the text is copyable. | | `delete` | `boolean` | `false` | Deleted line style. | | `disabled` | `boolean` | `false` | Disabled content. | | `ellipsis` | `boolean` | `false` | Display ellipsis when text overflows. | | `keyboard` | `boolean` | `false` | Keyboard style. | | `mark` | `boolean` | `false` | Marked/highlighted style. | | `italic` | `boolean` | `false` | Italic style. | | `underline` | `boolean` | `false` | Underlined style. | | `strong` | `boolean` | `false` | Bold style. | ## Import ```tsx import { Typography } from '@superset/components'; ``` --- :::tip[Improve this page] This documentation is auto-generated from the component's Storybook story. Help improve it by [editing the story file](https://github.com/apache/superset/edit/master/superset-frontend/packages/superset-ui-core/src/components/Typography/Typography.stories.tsx). :::