import { useVisibility } from "@charcuterie/logic" import { playgroundParameters } from "@charcuterie/storybook-config/story-parameters" import type { ControlSize } from "@charcuterie/tokens" import type { Meta, StoryObj } from "@storybook/react" import type { ReactNode } from "react" import { useState } from "react" import { controlSizeArgType, placementArgType, } from "../argTypes.storyHelpers.ts" import { Badge } from "../Badge/Badge.tsx" import { Button } from "../Button/Button.tsx" import { StoryCell, StoryGrid, StoryRow, } from "../board.storyHelpers.tsx" import type { ListboxItem } from "./Listbox.tsx" import { Listbox } from "./Listbox.tsx" const LANGUAGES: ListboxItem[] = [ { label: "English", value: "eng" }, { label: "Spanish", value: "spa" }, { label: "French", value: "fra" }, { isDisabled: true, label: "German", value: "deu" }, { label: "Japanese", value: "jpn" }, ] /** * The rich options a native `