mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
* 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>
41 lines
761 B
TypeScript
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,
|
|
},
|
|
};
|