Junior Garcia d794225cb7
Pr/1224 (#1301)
* chore: storybook migration

* chore: storybook migration

* chore: storybook migration

* fix: moved options in arg types out of control

* fix: fixed type issues

* fix: renamed sb:start script to start

* chore: migrate csf 2 to csf 3

* fix: removed storybook build from root build script

* chore: kick

* chore(root): pnpm lock updated

* chore(root): new changeset

---------

Co-authored-by: Jakob Guddas <github@jguddas.de>
2023-08-06 15:04:26 -03:00

41 lines
761 B
TypeScript

import {Meta} from "@storybook/react";
import {code} from "@nextui-org/theme";
import {Code} from "../src";
export default {
title: "Components/Code",
component: Code,
argTypes: {
color: {
control: {
type: "select",
},
options: ["default", "primary", "secondary", "success", "warning", "danger"],
},
radius: {
control: {
type: "select",
},
options: ["none", "sm", "md", "lg", "full"],
},
size: {
control: {
type: "select",
},
options: ["sm", "md", "lg"],
},
},
} as Meta<typeof Code>;
const defaultProps = {
children: "npm install @nextui-org/react",
...code.defaultVariants,
};
export const Default = {
args: {
...defaultProps,
},
};