27 lines
693 B
TypeScript
27 lines
693 B
TypeScript
import type { Meta, StoryObj } from "@storybook/react";
|
|
import { DemoRadioGroup } from "./_demo-primitives.js";
|
|
|
|
const meta: Meta<typeof DemoRadioGroup> = {
|
|
title: "UI / Inputs / Radio",
|
|
component: DemoRadioGroup,
|
|
tags: ["autodocs"],
|
|
};
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof DemoRadioGroup>;
|
|
|
|
const planOptions = [
|
|
{ value: "free", label: "Free — 1 project" },
|
|
{ value: "team", label: "Team — 25 projects" },
|
|
{ value: "enterprise", label: "Enterprise — custom" },
|
|
];
|
|
|
|
export const Default: Story = {
|
|
args: { name: "plan", options: planOptions, defaultValue: "team" },
|
|
};
|
|
|
|
export const Empty: Story = {
|
|
args: { name: "plan-empty", options: planOptions },
|
|
};
|