import React, { useState } from "react"; import type { Meta, StoryObj } from "@storybook/react"; import { Select as SelectComponent, type SelectOption, type SelectProps, } from "../src/components/select"; export default { title: "Input/Select", component: SelectComponent, } as Meta; const Component = (props: SelectProps>) => { const [value, setValue] = useState | null>(null); return ; }; export const Select: StoryObj>> = { render: Component, args: { label: "Select input", placeholder: "Pick an option", messages: { noResults: "No results found", }, options: [ { label: "Item 1", value: 1, }, { label: "Item 2", value: 2, }, { label: "Item 3", value: 3, }, { label: "Item 4", value: 4, }, { label: "Item 5", value: 5, }, ], }, };