Open natalia-fitzgerald opened 1 year ago
Here's an example from the Storybook website.
It seems like a pretty simple approach:
Things I like about each Storybook configuration
Example Application
Button Checkbox Date field Error summary Error text Fieldset File upload Form group Hint text Input field Input Label text Label Multi choice Radio Search box Select Textarea
Caption Details Document Footer Metadata Heading Inset text Lead paragraph List item Ordered list Paragraph Phase banner Table Tag Unordered list Warning text
Footer GlobalStyle Grid col Grid row Main Page Panel Section break Top nav
Back link Breadcrumbs Link Pagination Related items Skip link Tabs
Loading box Visually hidden Icons
Accessibility API Contributing
Swatches
Authentication Pages Documentation Pages Landing Page Not Found Page
Accordion Alert Banner Breadcrumb Button Button groups Card CharacterCount Checkbox Collection Combo box Date input Date picker Date range picker Dropdown File input Footer Form controls Form elements Form templates Grid Header Icon list Icons Identifier Input prefix or suffix Modal Pagination ProcessList Radio buttons Range slider Search Select Side navigation SiteAlert Step Indicator Summary box Table Tag Text input Textarea Tooltip Typography Validation
Color Grid
Fonts Headings Paragraphs
Logo Seal
Iconography
Banner notification Notifications
Expandables Summaries
Buttons Checkboxes Dropdowns and multiselects Fieldsets Helper text Labels and legends Links Radio buttons Range sliders Text inputs
Lists Tables
Designing forms E-mail signup forms
Filterable list control panels Pagination
Transition patterns
Heroes Text introductions Item introductions
Cards Featured content module Wells Taglines
Info unit groups Interactive charts
Landing pages Sublanding pages Browse pages Learn pages Filterable list pages Document detail pages Story pages
Atomic components
Base images Blocks Column dividers Main content and sidebars
Helper classes and mixins Media queries Variables
Checkboxes Buttons Date field (date picker) Dropdowns and multiselects Error summary Error text Fieldsets File upload Form group (USWDS + UK) Form templates (USWDS) Helper text (this is called hint text in USWDS and UK) Labels and legends Alerts -- Notifications -- (this contains in page notifications, inline notifications and form level alerts - should probably be broken up differently for our context) Radio buttons Text fields/inputs (Text input and text area input - should we break these apart?) Search box
Breadcrumbs Links Pagination Related links
Cards “Divider”* (horizontal rule) Footer Grid Header Heroes Item introductions Megamenu Text introductions Wells Taglines
Headings Icon list (USWDS) Icons Inset text Lead paragraph List item Ordered list Paragraph Table Tag Unordered list
My attempt at grouping the pieces of the CFPB DS in a more cohesive way
* = Not Implemented @ = Does it belong in DSR?
Links to documentation or things that do not have an associated implementation
Components to structure and style content
Components to structure pages
Components to gather user input (not always in a Form? ex. Login button used as Nav element)
Tools to assist with common dev tasks
General emphasis on matching heading levels between custom overviews <=> Auto generated
Stories
section label from auto pages?
The goal of this issue is to explore ways of organizing/structuring the CFPB React component library in Storybook.
Task
Storybook libraries