packages/components/src/components/link_button/readme_zh.stories.mdx
import { DownloadOutlined } from '@apitable/icons'; import { LinkButton } from './index'; import { Canvas, ArgsTable, Story } from '@storybook/addon-docs'; import { ThemeToggle } from '../../stories/theme-toggle'; import { colors } from '../../helper';
<Meta title="基础组件/Button 按钮/LinkButton 跳转按钮/文档" />import { LinkButton } from '@apitable/components';
默认通过 a 标签跳转
设置 target 为 _blank 浏览器新窗口打开网站 https://apitable.com
默认是主题色,可以自定义颜色。
默认会带下划线,也可以通过设置 underline 为 false 去掉下划线。
通过 component="button" 指定将 a 标签改为 button。也可根据需求指定为其他 HTML 标签,比如 div。