docs: add component documentation for EDS 2.0 Slice 1 components#4475
Draft
docs: add component documentation for EDS 2.0 Slice 1 components#4475
Conversation
Add Claude Code skill for creating structured component documentation from raw content (Figma specs, design notes, etc.).
Document the Figma component structure including Button [EDS] and Icon Button [EDS] components with their nested property layers.
… iframe support Add comprehensive guidance for embedding Storybook iframes in component documentation, including Chrome MCP workflow for measuring heights, formatting conventions, and expanded output template.
Embed interactive Storybook examples for default, variants, tones, icon-only, and circular icon-only button stories.
Add comprehensive documentation for Checkbox, Radio, and Switch components: - Responsive hero section showing all three controls in a grid layout - When to use guidance with comparison table - Structure section with Storybook iframes for each control type - Guidelines for labels, layout, ordering, and error handling - Accessibility documentation including keyboard support - Figma usage instructions - Do's and Don'ts best practices
Add comprehensive documentation for the Input component: - Introduction explaining Input as a building block for TextField - When to use guidance comparing Input vs TextField - Guidelines for types, validation, disabled/readOnly, labels, density, adornments - Accessibility requirements for aria-label when no visible label - Do's and Don'ts best practices Inspired by designsystemet.no input documentation patterns.
Add comprehensive documentation for the Field component: - Introduction explaining Field as a layout primitive for accessible forms - When to use guidance (Field vs TextField vs Fieldset) - Structure section covering sub-components (Label, Description, HelperMessage) - Guidelines for indicators, descriptions, live validation, disabled state - Accessibility section with useFieldIds hook documentation - Do's and Don'ts best practices Also update Selection Controls to reference Field for label positioning.
Add comprehensive documentation for the TextField component: - Introduction explaining TextField as a pre-composed form field - When to use guidance with alternatives (Input, Textarea, selection controls) - Structure section covering Label, Description, Input, HelperMessage - Guidelines for indicators, descriptions, validation, disabled/readOnly states - Prefix/suffix usage with accessibility considerations - Input types, field width, and density modes - Accessibility section with keyboard and screen reader support - Figma usage instructions - Do's and Don'ts best practices
…onent breakdown Add detailed Figma component structure with subcomponent names, property descriptions, and adornment configuration guide matching Button doc pattern.
This was
linked to
issues
Feb 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add comprehensive documentation for EDS 2.0 input components and enhance the documentation workflow:
New Component Documentation
Enhanced Documentation
Tooling
/create-component-docslash command with:Changes
Test plan
/create-component-doccommand functionality🤖 Generated with Claude Code