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:
github-actions[bot]
2024-02-12 19:46:51 +01:00
committed by GitHub
parent e85463b2a7
commit 869dc751a0
21 changed files with 213 additions and 57 deletions

View 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" />