MetricText
MetricText is a token-backed typography component to display metrics.Installation
| Install | yarn add @atlaskit/primitives |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/primitives, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Props
| Description | Text alignment. |
|---|---|
| Type | "center" | "start" | "end" |
| Description | HTML tag to be rendered. Defaults to |
|---|---|
| Type | "div" | "span" |
| Description | Elements rendered within the Text element. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description |
|
|---|---|
| Type | never |
| Description | The HTML |
|---|---|
| Type | string |
| Description | Allows getting a ref to the component instance.
Once the component unmounts, React will set @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
|---|---|
| Type | string | Ref<any> |
| Description | Accessible role. |
|---|---|
| Type | string |
| Description | Text size. |
|---|---|
| Type | "small" | "large" | "medium" |
| Description | A unique string that appears as data attribute |
|---|---|
| Type | string |