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
5
www/apps/ui/src/examples/alert-demo.tsx
Normal file
5
www/apps/ui/src/examples/alert-demo.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Alert } from "@medusajs/ui"
|
||||
|
||||
export default function AlertDemo() {
|
||||
return <Alert>You are viewing Medusa docs.</Alert>
|
||||
}
|
||||
5
www/apps/ui/src/examples/alert-dismissable.tsx
Normal file
5
www/apps/ui/src/examples/alert-dismissable.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Alert } from "@medusajs/ui"
|
||||
|
||||
export default function AlertDismissable() {
|
||||
return <Alert dismissible={true}>You are viewing Medusa docs.</Alert>
|
||||
}
|
||||
5
www/apps/ui/src/examples/alert-error.tsx
Normal file
5
www/apps/ui/src/examples/alert-error.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Alert } from "@medusajs/ui"
|
||||
|
||||
export default function AlertError() {
|
||||
return <Alert variant="error">An error occured while updating data.</Alert>
|
||||
}
|
||||
5
www/apps/ui/src/examples/alert-success.tsx
Normal file
5
www/apps/ui/src/examples/alert-success.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Alert } from "@medusajs/ui"
|
||||
|
||||
export default function AlertSuccess() {
|
||||
return <Alert variant="success">Data updated successfully!</Alert>
|
||||
}
|
||||
5
www/apps/ui/src/examples/alert-warning.tsx
Normal file
5
www/apps/ui/src/examples/alert-warning.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Alert } from "@medusajs/ui"
|
||||
|
||||
export default function AlertWarning() {
|
||||
return <Alert variant="warning">Be careful!</Alert>
|
||||
}
|
||||
Reference in New Issue
Block a user