chore(docs): Updated UI Reference (automated) (#11578)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
31f8b72129
commit
7799647675
@@ -0,0 +1,45 @@
|
||||
---
|
||||
title: "Inline Tip"
|
||||
description: "A component for displaying a note or tip inline."
|
||||
component: true
|
||||
---
|
||||
|
||||
<ComponentExample name="inline-tip-demo" />
|
||||
|
||||
## Usage
|
||||
|
||||
---
|
||||
|
||||
```tsx
|
||||
import { InlineTip } from "@medusajs/ui"
|
||||
```
|
||||
|
||||
```tsx
|
||||
<InlineTip
|
||||
label="This is a tip"
|
||||
>
|
||||
<button>Hover me</button>
|
||||
</InlineTip>
|
||||
```
|
||||
|
||||
## API Reference
|
||||
|
||||
---
|
||||
|
||||
<ComponentReference mainComponent="InlineTip" />
|
||||
|
||||
## Examples
|
||||
|
||||
---
|
||||
|
||||
### Success Inline Tip
|
||||
|
||||
<ComponentExample name="inline-tip-success" />
|
||||
|
||||
### Warning Inline Tip
|
||||
|
||||
<ComponentExample name="inline-tip-warning" />
|
||||
|
||||
### Error Inline Tip
|
||||
|
||||
<ComponentExample name="inline-tip-error" />
|
||||
Reference in New Issue
Block a user