Skip to main content

Components

Paragraph

Paragraph is used for continuous text and is typically applied in articles, components, help text, and similar content.

variant
Description

Adjusts styling for paragraph length

Type
"long" | "default" | "short"
Default
default
asChild
Description

Change the default rendered element for the one passed as a child, merging their props and behavior.

Type
boolean
Default
false
NameTypeDefaultDescription
variant"long" | "default" | "short"default

Adjusts styling for paragraph length

asChildbooleanfalse

Change the default rendered element for the one passed as a child, merging their props and behavior.

Usage

Examples

Sizes

HTML

Use the class name ds-paragraph on <p>.

CSS variables and data attributes

No relevant css variables found.

Data Attributes
NameValue
data-variantlong, short
Edit this page on github.com (opens in a new tab)