diff --git a/packages/@react-spectrum/s2/chromatic/TextField.stories.tsx b/packages/@react-spectrum/s2/chromatic/TextField.stories.tsx index 6b36960b013..f74206e0e74 100644 --- a/packages/@react-spectrum/s2/chromatic/TextField.stories.tsx +++ b/packages/@react-spectrum/s2/chromatic/TextField.stories.tsx @@ -16,6 +16,7 @@ import {Content, Footer, Heading, Text} from '../src/Content'; import {ContextualHelp} from '../src/ContextualHelp'; import {Form} from '../src/Form'; import {Link} from '../src/Link'; +import Magnifier from '../s2wf-icons/S2_Icon_Search_20_N.svg'; import type {Meta, StoryObj} from '@storybook/react'; import {style} from '../style/spectrum-theme' with {type: 'macro'}; import {TextArea, TextField} from '../src/TextField'; @@ -42,6 +43,21 @@ export const Example: Story = { } }; +export const ExampleWithPrefixText: Story = { + render: (args) => , + args: { + label: 'Name', + placeholder: 'Enter your name' + } +}; + +export const ExampleWithPrefixIcon: Story = { + render: (args) => } />, + args: { + label: 'Name', + placeholder: 'Enter your name' + } +}; export const Validation: Story = { render: (args) => (
@@ -90,6 +106,22 @@ export const TextAreaExample: StoryObj = { } }; +export const TextAreaExampleWithPrefixText: StoryObj = { + render: (args) =>