From e7b05d84720c73132343d1cc68699fd4b8bba083 Mon Sep 17 00:00:00 2001 From: p-sw Date: Sun, 2 Jun 2024 07:02:44 +0900 Subject: [PATCH] feat: add asChild in button docs --- packages/react/src/docs/components/Button.mdx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/react/src/docs/components/Button.mdx b/packages/react/src/docs/components/Button.mdx index ad8eff8..6fad52f 100644 --- a/packages/react/src/docs/components/Button.mdx +++ b/packages/react/src/docs/components/Button.mdx @@ -44,9 +44,9 @@ import { Button } from "@components/Button"; ``` -### Props +## Props -#### Variants +### Variants | Prop | Type | Default | Description | | :--- | :--- | :------ | :---------- | @@ -56,6 +56,12 @@ import { Button } from "@components/Button"; | `decoration` | `"none" \| "link"` | `"none"` | The inner text decoration of the button | | `presets` | `"default" \| "ghost" \| "link" \| "success" \| "warning" \| "danger"` | `"default"` | The preset of the variant props | +### Special + +| Prop | Type | Default | Description | +| :--- | :--- | :------ | :---------- | +| `asChild` | `boolean` | `false` | Whether the button is rendered as a child of a component | + ## Examples ### Default