Skip to content

Typography

Text

The main component for handling typography in our interfaces. Renders as a span tag by default.

jsx
import { Text } from '@semcore/ui/typography';
<Text />;

TextProps

& {...}
NameTypeDescription
size100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 Font size and line-heights
noWrapboolean The text will not be wrapped on a new line and will be cut off with ellipsis
boldboolean CSS property `font-weight: 700;`
semiboldboolean CSS property `font-weight: 600;`
mediumboolean CSS property `font-weight: 500;`
italicboolean Italicized text
underlineboolean Underlined text
monospaceboolean CSS property `font-family: monospace;`
lineThroughboolean Strikethrough text
uppercaseboolean Uppercase text
lowercaseboolean Lowercase text
capitalizeboolean Capitalized text
colorstring Text color *
fontSizeProperty.FontSize<any> Custom `font-size`
lineHeightProperty.LineHeight<any> Custom `line-height`
fontWeightProperty.FontWeight Custom `font-weight`
textAlignProperty.TextAlign Text alignment
use"primary" | "secondary" Enforces text color
disabledboolean Makes text semi-transparent to indicate disabled state
formatTagsboolean Enable formatting/styling for all nested HTML tags with our default styles for them

List

A list rendered with the ul tag. You can set a custom marker for all list items.

jsx
import { List } from '@semcore/ui/typography';
<List />;

INFO

The size property of this component only accepts the values 100, 200, and 300.

ListProps

& {...}
NameTypeDescription
markerReact.ReactNode Marker of the entire list

List.Item

A list item rendered with the li tag. You can set a custom marker and customize the content using <List.Item.Content />.

jsx
import { List } from '@semcore/ui/typography';
<List.Item />;
<List.Item.Content />;

ListItemProps

& {...}
NameTypeDescription
markerReact.ReactNode Individual marker of a list item

ListItemContentProps

Blockquote

A component for displaying quoted text.

jsx
import { Blockquote } from '@semcore/ui/typography';
<Blockquote />;

BlockquoteProps

& {...}
NameTypeDescription
authorReact.ReactNode Source of the quote

FormatText

WARNING

FormatText is deprecated. To style native tags, wrap them in Text. Refer to the Native typography tags example

Released under the MIT License.

Released under the MIT License.