mirror of
https://github.com/detleph/components.git
synced 2026-09-08 16:06:15 +02:00
Add checkboxes
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user