fleet/frontend/components/forms/fields/Checkbox/Checkbox.stories.tsx

30 lines
573 B
TypeScript
Raw Normal View History

import React from "react";
2023-05-03 16:51:33 +00:00
import { Meta, StoryObj } from "@storybook/react";
import Checkbox from ".";
2023-05-03 16:51:33 +00:00
const meta: Meta<typeof Checkbox> = {
component: Checkbox,
title: "Components/FormFields/Checkbox",
2023-05-03 16:51:33 +00:00
};
2023-05-03 16:51:33 +00:00
export default meta;
2023-05-03 16:51:33 +00:00
type Story = StoryObj<typeof Checkbox>;
export const Basic: Story = {
parameters: {
design: {
type: "figma",
url:
"https://www.figma.com/file/qbjRu8jf01BzEfdcge1dgu/Fleet-style-guide-2022-(WIP)?node-id=117-16951",
},
},
};
2023-05-03 16:51:33 +00:00
export const WithLabel: Story = {
args: {
children: <b>Label</b>,
},
};