mirror of
https://github.com/detleph/components.git
synced 2026-09-04 00:26:01 +02:00
19 lines
498 B
TypeScript
19 lines
498 B
TypeScript
import React from "react";
|
|
|
|
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
|
|
import Checkbox from "../components/checkbox";
|
|
|
|
export default { title: "Checkbox", component: Checkbox, argTypes: {onClick: {action: "click"}} } as ComponentMeta<typeof Checkbox>;
|
|
|
|
const Template: ComponentStory<typeof Checkbox> = (args) => <Checkbox {...args} />;
|
|
|
|
export const defaultButton = Template.bind({});
|
|
|
|
defaultButton.args = {
|
|
checked: false,
|
|
disabled: false,
|
|
label: "Test",
|
|
};
|
|
|