Paragraph
Use Paragraph to render blocks of text with Garden styling.
How to use it
Default
Use Paragraph to style and format <p>
elements.
Turnip greens yarrow ricebean rutabaga endive cauliflower sear lettuce kohlrabi amaranth water spinach avacado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko.
Lotus root spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Cordn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.
Size
Size controls the space between Paragraphs. The default size is medium, and you can choose small or large too. Use typography to choose an appropriate type scale.
<SM>Lotus root spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea.
Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress.
Cordn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.
<MD>Lotus root spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea.
Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress.
Cordn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.
<LG>Lotus root spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea.
Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress.
Cordn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.
Configuration
- Name9.5.1•View source•View on npm
- Installnpm install @zendeskgarden/react-typography
- Depsnpm install react react-dom styled-components @zendeskgarden/react-theming
- Importimport { LG, MD, Paragraph, SM } from '@zendeskgarden/react-typography'
API
LG
Extends HTMLAttributes<HTMLDivElement>
Prop name | Type | Default | Description |
---|---|---|---|
isBold | boolean | Applies bold font style | |
isMonospace | boolean | Renders with monospace font | |
tag | any | div | Updates the element's HTML tag |
MD
Extends HTMLAttributes<HTMLDivElement>
Prop name | Type | Default | Description |
---|---|---|---|
isBold | boolean | Applies bold font style | |
isMonospace | boolean | Renders with monospace font | |
tag | any | div | Updates the element's HTML tag |
Paragraph
Extends HTMLAttributes<HTMLParagraphElement>
Prop name | Type | Default | Description |
---|---|---|---|
size | 'small' | 'medium' | 'large' | 'medium' | Controls the spacing between sibling paragraphs |
SM
Extends HTMLAttributes<HTMLDivElement>
Prop name | Type | Default | Description |
---|---|---|---|
isBold | boolean | Applies bold font style | |
isMonospace | boolean | Renders with monospace font | |
tag | any | div | Updates the element's HTML tag |