diff --git a/packages/ui/src/components/SearchField/SearchField.stories.tsx b/packages/ui/src/components/SearchField/SearchField.stories.tsx index 21f5040a6f..203e11c73c 100644 --- a/packages/ui/src/components/SearchField/SearchField.stories.tsx +++ b/packages/ui/src/components/SearchField/SearchField.stories.tsx @@ -14,6 +14,7 @@ * limitations under the License. */ +import { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { SearchField } from './SearchField'; import { Form } from 'react-aria-components'; @@ -305,3 +306,22 @@ export const StartCollapsedWithOnChange: Story = { ); }, }; + +export const StartCollapsedControlled: Story = { + args: { + ...StartCollapsed.args, + }, + render: function Render(args) { + const [value, setValue] = useState(''); + + return ( + + + + ); + }, +};