diff --git a/packages/ui/components/LinkButton.stories.ts b/packages/ui/components/LinkButton.stories.ts new file mode 100644 index 00000000..39a3fd93 --- /dev/null +++ b/packages/ui/components/LinkButton.stories.ts @@ -0,0 +1,31 @@ +import { StoryFn } from '@storybook/vue3' +import LinkButton from './LinkButton.vue' + +export default { + title: 'LinkButton', + component: LinkButton, + args: { + title: 'button', + backgroundColor: 'vue-green', + color: 'white', + href: 'https://example.com', + }, +} + +const Template: StoryFn = (args, { argTypes }) => ({ + props: Object.keys(argTypes), + components: { LinkButton }, + setup() { + return { args } + }, + template: `
+ {{ args.title }} +
`, +}) + +export const Default = Template.bind({}) + +export const TargetBlank = Template.bind({}) +TargetBlank.args = { + target:'_blank' +} diff --git a/packages/ui/components/LinkButton.vue b/packages/ui/components/LinkButton.vue new file mode 100644 index 00000000..72be9441 --- /dev/null +++ b/packages/ui/components/LinkButton.vue @@ -0,0 +1,70 @@ + + + + +