chore(docs): Updated UI Reference (#6347)
* chore(docs): Generated UI Reference * fixed props typing + added new alert page * updated ui dependencies --------- Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e85463b2a7
commit
869dc751a0
45
www/apps/ui/src/content/docs/components/alert.mdx
Normal file
45
www/apps/ui/src/content/docs/components/alert.mdx
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
title: "Avatar"
|
||||
description: "An image element with a fallback for representing the user."
|
||||
component: true
|
||||
---
|
||||
|
||||
<ComponentExample name="alert-demo" />
|
||||
|
||||
## Usage
|
||||
|
||||
---
|
||||
|
||||
```tsx
|
||||
import { Alert } from "@medusajs/ui"
|
||||
```
|
||||
|
||||
```tsx
|
||||
<Alert>Here's a message</Alert>
|
||||
```
|
||||
|
||||
## API Reference
|
||||
|
||||
---
|
||||
|
||||
<ComponentReference mainComponent="Alert" />
|
||||
|
||||
## Examples
|
||||
|
||||
---
|
||||
|
||||
### Success Alert
|
||||
|
||||
<ComponentExample name="alert-success" />
|
||||
|
||||
### Warning Alert
|
||||
|
||||
<ComponentExample name="alert-warning" />
|
||||
|
||||
### Error Alert
|
||||
|
||||
<ComponentExample name="alert-error" />
|
||||
|
||||
### Dismissable Alert
|
||||
|
||||
<ComponentExample name="alert-dismissable" />
|
||||
Reference in New Issue
Block a user