Typography

Typography コンポーネントは、アプリケーション全体で標準化されたテキストスタイルを提供します。

いつ使用するか

  • 記事/ブログ/ノートなどでタイトルや段落の内容を表示する必要がある場合。
  • コピー可能/編集可能/省略記号(...)付きのテキストが必要な場合。

使用例

タイトルコンポーネント

異なるレベルでタイトルを表示します。

H1

H1 Heading

H2

H2 Heading

H3

H3 Heading

テキストコンポーネント

複数のタイプのテキストを提供します。

Body

Most fonts have a particular weight which corresponds to one of the numbers in Common weight name mapping. However some fonts, called variable fonts, can support a range of weights with a more or less fine granularity, and this can give the designer a much closer degree of control over the chosen weight.

BodyHEAVY

Most fonts have a particular weight which corresponds to one of the numbers in Common weight name mapping. However some fonts, called variable fonts, can support a range of weights with a more or less fine granularity.

Body Small

Most fonts have a particular weight which corresponds to one of the numbers in Common weight name mapping.

Body SmallHEAVY

Most fonts have a particular weight which corresponds to one of the numbers in Common weight name mapping.

ポリモーフィズム

asの視覚的スタイルを維持しながら、任意の有効なHTML要素としてコンポーネントをレンダリングするためにvariantプロパティを使用できます。

Span looking like H1

API

プロパティ
説明
タイプ
デフォルト

as

レンダリングするHTML要素またはコンポーネント。 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'a' | 'div' 'p'

variant

タイポグラフィの視覚的スタイルバリアント。 'h1' | 'h2' | 'h3' | 'body' | 'body-heavy' | 'body-small' | 'body-small-heavy' 'body'

class

適用する追加のCSSクラス。 string -