Skip to content

Commit 07bd8f0

Browse files
authored
refactor(select): separate into Select and MultiSelect (#63)
* refactor: simplify Select component and update styles for better usability * feat: add MultiSelect component and update Select documentation * feat: enhance MultiSelect component with size management and replace Badge with Tag * feat: disable className table entry in Select component documentation * feat: refactor MultiSelect and MultiSelectTrigger components for improved readability and functionality * feat: implement SelectContext for size management in Select component * feat: add MultiSelectCaption component and update stories to use it * fix: lint, type error
1 parent e292962 commit 07bd8f0

File tree

10 files changed

+681
-556
lines changed

10 files changed

+681
-556
lines changed

examples/nextjs/src/pages/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,7 @@ const IndexPage: NextPage = () => {
160160
</DropdownContent>
161161
</Dropdown>
162162
<div className="w-96">
163-
<Select
164-
type="single"
165-
value={value}
166-
onValueChange={(value) => setValue(value)}
167-
>
163+
<Select value={value} onValueChange={(value) => setValue(value)}>
168164
<SelectLabel>Label</SelectLabel>
169165
<SelectTrigger>
170166
<SelectValue placeholder="Select a value..." />

packages/react/src/components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export * from "./radio";
3232
export * from "./select";
3333
export * from "./spinner";
3434
export * from "./scroll-area";
35+
export * from "./multi-select";
3536
export * from "./switch";
3637
export * from "./sheet";
3738
export * from "./toast";

0 commit comments

Comments
 (0)