feat: add Storybook stories for UI components #3072
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.
Description
Adds Storybook stories for 12
@onlook/uicomponents that were missing story coverage. Each story file follows the project's Storybook conventions with a Default story as the first export, proper argTypes with descriptions, and multiple variants/states.Components covered:
Related Issues
Part of Storybook audit to improve component documentation coverage.
Type of Change
Testing
bun run lintreturns 0)Note: Stories were not visually verified in Storybook during development. Recommend running
bun run storybookto verify all stories render correctly.Human Review Checklist
bun run storybook@onlook/ui/labelimport works in Checkbox and Switch storiesAdditional Notes
Important
Adds Storybook stories for 12
@onlook/uicomponents, enhancing documentation and testing coverage with multiple variants and states.@onlook/uicomponents:Alert,Avatar,Badge,Checkbox,Input,Kbd,Progress,Separator,Skeleton,Switch,Textarea,Toggle.Alert.stories.tsx: Includes variants likeDefault,Destructive,Success,Warning,TitleOnly,DescriptionOnly,Variants.Avatar.stories.tsx: CoversDefault,WithImage,Fallback,SingleLetter,CustomSize,AvatarGroup.Badge.stories.tsx: FeaturesDefault,Secondary,Destructive,Outline,WithIcon,Variants,WithIcons.Checkbox.stories.tsx: IncludesDefault,Checked,Disabled,DisabledChecked,WithLabel,CheckboxGroup.Input.stories.tsx: ContainsDefault,WithValue,Password,Email,Number,Search,Disabled,DisabledWithValue,Types.Kbd.stories.tsx: DisplaysDefault,Enter,Escape,CommandK,CtrlShiftP,CommonShortcuts,ArrowKeys.Progress.stories.tsx: ShowsDefault,Empty,Quarter,Half,ThreeQuarters,Complete,ProgressSteps.Separator.stories.tsx: DemonstratesDefault,Horizontal,Vertical,InList,InNavigation.Skeleton.stories.tsx: IllustratesDefault,Circle,Square,Text,Card,Avatar,Table,Form.Switch.stories.tsx: PresentsDefault,Checked,Disabled,DisabledChecked,WithLabel,SwitchGroup.Textarea.stories.tsx: OffersDefault,WithValue,WithRows,Disabled,DisabledWithValue,LongContent.Toggle.stories.tsx: ProvidesDefault,Pressed,Outline,Disabled,WithIcon,Variants,Sizes,TextFormatting.This description was created by
for 78a0943. You can customize this summary. It will automatically update as commits are pushed.