Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
@@ -0,0 +1,26 @@
|
||||
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 },
|
||||
};
|
||||
Reference in new issue
Block a user