-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add checkbox component to experimental forms
- Loading branch information
1 parent
b5d6751
commit e2c9983
Showing
3 changed files
with
53 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import type { Meta, StoryObj } from "@storybook/react" | ||
import Checkbox from "." | ||
|
||
const meta = { | ||
component: Checkbox, | ||
tags: ["autodocs"], | ||
args: {}, | ||
} satisfies Meta<typeof Checkbox> | ||
|
||
export default meta | ||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = { | ||
args: { | ||
title: "Checkbox", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Checkbox as ShadcnInput } from "@/ui/checkbox" | ||
|
||
type CheckboxProps = Omit< | ||
React.ComponentPropsWithoutRef<typeof ShadcnInput>, | ||
"asChild" | ||
> & { | ||
title?: string | ||
} | ||
|
||
const Checkbox: React.FC<CheckboxProps> = ShadcnInput | ||
|
||
export default Checkbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters