* 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
39 lines
721 B
Plaintext
39 lines
721 B
Plaintext
import { ComponentExample } from "@/components/ComponentExample"
|
|
import { ComponentReference } from "@/components/ComponentReference"
|
|
|
|
export const metadata = {
|
|
title: `Container`,
|
|
}
|
|
|
|
# {metadata.title}
|
|
|
|
A component that wraps content in a card-like container. The container is useful to create sections in the Medusa Admin dashboard.
|
|
|
|
In this guide, you'll learn how to use the Container component.
|
|
|
|
<ComponentExample name="container-demo" />
|
|
|
|
## Usage
|
|
|
|
```tsx
|
|
import { Container } from "@medusajs/ui"
|
|
```
|
|
|
|
```tsx
|
|
<Container>Container</Container>
|
|
```
|
|
|
|
---
|
|
|
|
## API Reference
|
|
|
|
<ComponentReference mainComponent="Container" />
|
|
|
|
---
|
|
|
|
## Examples
|
|
|
|
### In a Layout
|
|
|
|
<ComponentExample name="container-layout" hideFeedback />
|