* docs: create a new UI docs project (#13233) * docs: create a new UI docs project * fix installation errors * docs: migrate UI docs content to new project (#13241) * Fix content * added examples for some components * finish adding examples * lint fix * fix build errors * delete empty files * path fixes + refactor * fix build error
51 lines
807 B
Plaintext
51 lines
807 B
Plaintext
import { ComponentExample } from "@/components/ComponentExample"
|
|
import { ComponentReference } from "@/components/ComponentReference"
|
|
|
|
export const metadata = {
|
|
title: `Text`,
|
|
}
|
|
|
|
# {metadata.title}
|
|
|
|
A component that displays text using the typography styles from Medusa's design system.
|
|
|
|
In this guide, you'll learn how to use the Text component.
|
|
|
|
<ComponentExample name="text-demo" />
|
|
|
|
## Usage
|
|
|
|
```tsx
|
|
import { Text } from "@medusajs/ui"
|
|
```
|
|
|
|
```tsx
|
|
<Text>Text</Text>
|
|
```
|
|
|
|
---
|
|
|
|
## API Reference
|
|
|
|
<ComponentReference mainComponent="Text" />
|
|
|
|
---
|
|
|
|
## Examples
|
|
|
|
### Text Sizes
|
|
|
|
<ComponentExample name="text-sizes" />
|
|
|
|
### Text Weights
|
|
|
|
<ComponentExample name="text-weights" />
|
|
|
|
### Text Fonts
|
|
|
|
<ComponentExample name="text-fonts" />
|
|
|
|
### Text Leading
|
|
|
|
<ComponentExample name="text-leading" hideFeedback />
|