Skip to content

Typography

Text

It's a main component for text in our interfaces. By default, this is a span tag.

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

TextProps

& {...}
NameTypeDescription
size100 | 200 | 300 | 400 | 500 | 600 | 700 | 800Font size and line-heights
noWrapbooleanThe text will not be wrapped on a new line and will be cut off with ellipsis
boldbooleanCSS property `font-weight: 700;`
semiboldbooleanCSS property `font-weight: 600;`
mediumbooleanCSS property `font-weight: 500;`
italicbooleanItalicized text
underlinebooleanUnderlined text
monospacebooleanCSS property `font-family: monospace;`
lineThroughbooleanStrikethrough text
uppercasebooleanUppercase text
lowercasebooleanLowercase text
capitalizebooleanCapitalized text
colorstringText color *
fontSizeProperty.FontSizeCustom `font-size`
lineHeightProperty.LineHeightCustom `line-height`
fontWeightProperty.FontWeightCustom `font-weight`
textAlignProperty.TextAlignText alignment
use"primary" | "secondary"Enforces text color
disabledbooleanMakes text semi-transparent to indicate disabled state

List

A list tagged with ʻul`. It's possible to set a custom marker for all items.

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

ListProps

& {...}
NameTypeDescription
markerReact.ReactNodeMarker of the entire list

List.Item

A list item tagged with li. It's possible to set a custom marker.

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

ListItemProps

& {...}
NameTypeDescription
markerReact.ReactNodeIndividual marker of a list item

Blockquote

Quotes from great people 🙊

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

BlockquoteProps

& {...}
NameTypeDescription
authorReact.ReactNodeSource of the quote

Hint

The hint is very similar to Link and has a similar structure from Addon + Text.

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

HintProps

& & {...}
NameTypeDescription
disabledbooleanThe value responsible for the activity of the element
activebooleanEnable `active` state
addonLeftReact.ElementTypeLeft addon hint
addonRightReact.ElementTypeRight addon hint

FormatText

A wrapper component required to add styles to native tags.

TIP

Note that the component is in another package @semcore/ui/format-text.

jsx
import FormatText from '@semcore/ui/format-text';
<FormatText />;
import FormatText from '@semcore/ui/format-text';
<FormatText />;

FormatTextProps

& {...}
NameTypeDescription
size"s" | "m" | "l"

Released under the MIT License.

Released under the MIT License.