Skip to content

feat: refine input-switch and field-switch with documented stories#656

Open
isaquebock wants to merge 11 commits into
devfrom
feat/inputs-switch
Open

feat: refine input-switch and field-switch with documented stories#656
isaquebock wants to merge 11 commits into
devfrom
feat/inputs-switch

Conversation

@isaquebock

Copy link
Copy Markdown
Contributor

Summary

  • Tightens InputSwitch, FieldSwitch, and FieldSwitchBlock visuals against the Figma spec (specs updated).
  • Aligns the Storybook stories with the InputSelect pattern: code panel open by default (docs.canvas.sourceState: 'shown'), hand-crafted docs.source.code snippets per story, and a ## Usage block injected into parameters.docs.description.component.

Test plan

  • pnpm storybook:dev — open Webkit / Inputs / Input Switch, Field Switch, and Field Switch Block; confirm the "Show code" panel is expanded by default and each snippet is the consumer-facing version (no v-bind="args", no setup boilerplate).
  • Verify the ## Usage block renders inside each component's autodocs page.
  • pnpm storybook:build succeeds.
  • pnpm webkit:lint and pnpm webkit:type-check pass.

Tighten the InputSwitch / FieldSwitch / FieldSwitchBlock visuals against the
Figma spec, and align the Storybook stories with the InputSelect pattern
(Show code panel open by default, hand-crafted source snippets, `## Usage`
block in autodocs).
@isaquebock isaquebock requested a review from a team as a code owner June 24, 2026 14:34
@isaquebock isaquebock changed the base branch from main to dev June 24, 2026 15:17
pauloSF0
pauloSF0 previously approved these changes Jun 24, 2026
HerbertJulio
HerbertJulio previously approved these changes Jun 25, 2026
Comment thread .specs/field-switch-block.md Outdated
Comment thread .specs/field-switch.md Outdated
Comment thread packages/webkit/src/components/inputs/field-switch-block/field-switch-block.vue Outdated
Comment thread packages/webkit/src/components/inputs/field-switch/field-switch.vue Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants