import { Badge } from "."; import { Meta, StoryObj } from "@storybook/react-vite"; import { action } from "storybook/actions"; const onClickAction = action("onClick"); const onRemoveAction = action("onRemove"); const meta = { title: "Components/Badge", component: Badge, argTypes: { color: { control: { type: "select", }, options: ["yellow", "gray", "red", "orange", "green", "blue"], }, }, } satisfies Meta; export default meta; type Story = StoryObj; export const Playbook: Story = { args: { tooltip: "More infos...", url: "https://lonlat.org", color: "yellow", children: "Lonlat", }, }; export const Context = () => { return (
Primary Warning Success Danger Info Weak Primary clickable Warning clickable Success clickable Danger clickable Info clickable Weak clickable Primary removable Primary clickable removable With tooltip !
); };