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 'intergalactic/typography';
<Text />;
import { Text } from 'intergalactic/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.FontSize<any>Custom `font-size`
lineHeightProperty.LineHeight<any>Custom `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 'intergalactic/typography';
<List />;
import { List } from 'intergalactic/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. Also, it is possible to customise content with <List.Item.Content />;

jsx
import { List } from 'intergalactic/typography';
<List.Item />;
<List.Item.Content />;
import { List } from 'intergalactic/typography';
<List.Item />;
<List.Item.Content />;

ListItemProps

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

ListItemContentProps

Blockquote

Quotes from great people 🙊

jsx
import { Blockquote } from 'intergalactic/typography';
<Blockquote />;
import { Blockquote } from 'intergalactic/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 'intergalactic/typography';
<Hint>
  <Hint.Addon />
  <Hint.Text />
</Hint>;
import { Hint } from 'intergalactic/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 intergalactic/format-text.

jsx
import FormatText from 'intergalactic/format-text';
<FormatText />;
import FormatText from 'intergalactic/format-text';
<FormatText />;

FormatTextProps

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

Released under the MIT License.

Released under the MIT License.