Skip to content

Typography ​

Headings

Loading...

Body & Caption

Loading...

Typography component for displaying text with consistent theme styles.

  • Tag: <flint-typography>
  • Class: FlintTypography

Import ​

ts
import '@getufy/flint-ui'; // auto-registers all
// or
import { FlintTypography } from '@getufy/flint-ui';

Usage ​

html
<flint-typography></flint-typography>

Properties ​

PropertyAttributeTypeDefaultDescription
variantvariant| 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'overline' | 'inherit''body1'Variant of the typography.
colorcolor| 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' | 'textPrimary' | 'textSecondary' | 'inherit''textPrimary'The color of the text.
componentcomponentstring | undefined—Override the rendered HTML tag.
alignalign'left' | 'center' | 'right' | 'justify''left'Text alignment.
noWrapnoWrapbooleanfalseIf true, text is truncated with an ellipsis.
gutterBottomgutterBottombooleanfalseIf true, adds a bottom margin.
paragraphparagraphbooleanfalseIf true, adds paragraph margin bottom.

Slots ​

NameDescription
(default)The text content.

CSS Parts ​

NameDescription
baseThe component's base wrapper element.

CSS Custom Properties ​

PropertyDefault
--flint-font-family—
--flint-text-color—
--flint-primary-color—
--flint-secondary-color—
--flint-success-color—
--flint-error-color—
--flint-warning-color—
--flint-info-icon-color—
--flint-text-color-muted—