Skip to content

Commit

Permalink
fix: add sb for combobox
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyyaaa committed Sep 12, 2024
1 parent 51f31d5 commit 3e19dcc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/react/stories/inputs/Combobox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,25 @@ export const Default: Story = {
),
};

export const PreventClearValueOnBlur: Story = {
render: () => (
<Box display="flex" flexDirection="column" gap="$6">
<Combobox
label="Favorite Animal"
openOnFocus
allowsCustomValue
styleProps={{
width: "350px",
}}
>
{defaultOptions.map((option) => (
<Combobox.Item key={option.value}>{option.label}</Combobox.Item>
))}
</Combobox>
</Box>
),
};

const ChainOption = (props: Option & { iconUrl: string }) => {
return (
<Stack
Expand Down

0 comments on commit 3e19dcc

Please sign in to comment.