@altimateai/ui-components 0.0.2 → 0.0.3-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,8 @@ import {
11
11
  NativeSelect,
12
12
  } from "../shadcn";
13
13
  import { DatabaseIcon } from "@ac-assets/icons";
14
+ import Combobox from "./Combobox";
15
+ import { useState } from "react";
14
16
 
15
17
  export default {
16
18
  title: "Shadcn/Components/Select",
@@ -143,3 +145,34 @@ export const NativeSelectExample: StoryFn = () => {
143
145
  </div>
144
146
  );
145
147
  };
148
+
149
+ export const ComboboxExample: StoryFn = () => {
150
+ const options = [
151
+ { value: "react", label: "React" },
152
+ { value: "vue", label: "Vue" },
153
+ { value: "angular", label: "Angular" },
154
+ { value: "svelte", label: "Svelte" },
155
+ { value: "nextjs", label: "Next.js" },
156
+ ];
157
+
158
+ const [value, setValue] = useState("");
159
+
160
+ return (
161
+ <div className="al-flex al-flex-col al-gap-4 al-justify-start al-items-start">
162
+ <Combobox
163
+ options={options}
164
+ value={value}
165
+ onChange={setValue}
166
+ placeholder="Select framework..."
167
+ />
168
+
169
+ <Combobox
170
+ options={options}
171
+ value={value}
172
+ onChange={setValue}
173
+ placeholder="Custom width..."
174
+ buttonProps={{ className: "al-w-[300px]" }}
175
+ />
176
+ </div>
177
+ );
178
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.2",
3
+ "version": "0.0.3-beta.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"