// Themes
<ComboBox theme="primary"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox theme="secondary"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox theme="tertiary"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox theme="quaternary"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
// States
<ComboBox state="success"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox state="warning"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox state="error"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox state="info"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
// Sizes
<ComboBox size="xs"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox size="small"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox size="medium"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox size="large"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
// Variants
<ComboBox variant="solid"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox variant="outline"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox variant="glass"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
// Rounding
<ComboBox rounding="none"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox rounding="medium"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox rounding="large"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
// Shadows
<ComboBox shadow="none"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox shadow="light"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>
<ComboBox shadow="strong"
label="Framework"
options={[
{ value: "react", label: "React", description: "UI library" },
{ value: "next", label: "Next.js", description: "App framework" },
{ value: "vite", label: "Vite", description: "Build tool" },
{
value: "astro",
label: "Astro",
description: "Content-focused framework",
},
]}
placeholder="Search frameworks"
helperText="Start typing to filter the available options."
/>