Skip to content

docs(Field): add Storybook stories#1395

Open
preji89 wants to merge 1 commit into
canonical:mainfrom
preji89:field-storybook-stories
Open

docs(Field): add Storybook stories#1395
preji89 wants to merge 1 commit into
canonical:mainfrom
preji89:field-storybook-stories

Conversation

@preji89

@preji89 preji89 commented Jul 9, 2026

Copy link
Copy Markdown

Done

  • Added Field.stories.tsx with Default, Stacked, Error, Success, Caution and Required stories, following the existing Input.stories.tsx conventions.

Field is exported publicly and used internally by Input, Select, Textarea and other form components, but had no Storybook coverage until now.

QA

Pinging @canonical/react-library-maintainers for a review.

Storybook

To see rendered examples of all react-components, run:

yarn start

Then check the new "Field" stories in the sidebar.

QA steps

  • Run yarn jest src/components/Field — 18 existing tests pass, unaffected by this change (no changes to Field.tsx itself).
  • Run Storybook and visually confirm each Field story (Default, Stacked, Error, Success, Caution, Required) renders as expected.

Percy steps

  • No visual changes expected (new story-only addition, no component code changed).

Fixes

N/A — documentation gap, not a bug fix.

Field is exported publicly and used internally by Input, Select,
Textarea and other form components, but had no Storybook coverage.
Adds Default, Stacked, Error, Success, Caution and Required stories
following the existing Input.stories.tsx conventions.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant