From 9b445e635e2694c0d6095a1a2613fc59314dc595 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 4 Apr 2022 12:12:26 +0200 Subject: chore: add a NavLink component --- src/components/atoms/links/nav-link.stories.tsx | 49 +++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/components/atoms/links/nav-link.stories.tsx (limited to 'src/components/atoms/links/nav-link.stories.tsx') diff --git a/src/components/atoms/links/nav-link.stories.tsx b/src/components/atoms/links/nav-link.stories.tsx new file mode 100644 index 0000000..08553be --- /dev/null +++ b/src/components/atoms/links/nav-link.stories.tsx @@ -0,0 +1,49 @@ +import { ComponentMeta, ComponentStory } from '@storybook/react'; +import NavLinkComponent from './nav-link'; + +export default { + title: 'Atoms/Links', + component: NavLinkComponent, + argTypes: { + href: { + control: { + type: 'text', + }, + description: 'The link target.', + type: { + name: 'string', + required: true, + }, + }, + label: { + control: { + type: 'text', + }, + description: 'The link label.', + type: { + name: 'string', + required: true, + }, + }, + logo: { + control: { + type: null, + }, + description: 'The link logo.', + type: { + name: 'string', + required: true, + }, + }, + }, +} as ComponentMeta; + +const Template: ComponentStory = (args) => ( + +); + +export const NavLink = Template.bind({}); +NavLink.args = { + href: '#', + label: 'A nav link', +}; -- cgit v1.2.3