packages/components/src/components/link_button/readme.stories.mdx
import { LinktableOutlined, DownloadOutlined } from '@apitable/icons'; import { LinkButton } from './index'; import { Canvas, ArgsTable } from '@storybook/addon-docs'; import { ThemeToggle } from '../../stories/theme-toggle'; import { colors } from '../../helper';
<Meta title="en/components/LinkButton" />import { LinkButton } from '@apitable/components';
By default, the link is jumped through the a tag.
Set target to _blank to open the website in a new browser window https://apitable.com.
Default is primary color, you can customize the color.
Underlined by default, remove underline by setting underline to false.
Change the a tag to button by specifying component="button". Can be specified as other HTML tags, such as div, as required.
| Name | Type | Description | Default |
|---|---|---|---|
| block | boolean | fill width | - |
| disabled | boolean | disabled button | - |
| component | ElementType | senders the component using the specified HTML element | a |
| prefixIcon | ReactNode | prefix icon | - |
| suffixIcon | ReactNode | suffix icon | - |
| href | string | link url | - |
| underline | boolean | show underline | true |
| color | string | font color | - |
| target | string | specify where to open linked documents | - |