{"name":"UI Lexicon","repo":"https://github.com/JenxxAI/cmt-lexicon","count":40,"entries":[{"id":"accordion","name":"Accordion","category":"layout","aliases":["expandable sections","disclosure list","progressive disclosure"],"looksLike":["sections that expand when you click","stack of questions that reveal answers","rows with arrows that open more text underneath"],"definition":"A stack of headings that expand or collapse their own content in place.","whenToUse":["Frequently asked questions","Optional details in a long page"],"notConfusedWith":[{"id":"tabs","difference":"Switches between panels instead of expanding content under each heading."}],"related":["tabs","card"],"prompts":{"short":"Add an accordion with keyboard-operable headings that expand and collapse content.","detailed":"Add an accordion using native details and summary elements. Let each section open independently. Give each summary a visible focus indicator and at least a 44px target; keep collapsed content out of keyboard navigation."},"snippets":{"html":"<details>\n  <summary style=\"min-height:44px; cursor:pointer\">When will my order arrive?</summary>\n  <p>Delivery takes three to five business days.</p>\n</details>\n<details>\n  <summary style=\"min-height:44px; cursor:pointer\">Can I return my order?</summary>\n  <p>Unused items can be returned within 30 days.</p>\n</details>","vue":"<template>\n  <details>\n    <summary style=\"min-height:44px; cursor:pointer\">When will my order arrive?</summary>\n    <p>Delivery takes three to five business days.</p>\n  </details>\n  <details>\n    <summary style=\"min-height:44px; cursor:pointer\">Can I return my order?</summary>\n    <p>Unused items can be returned within 30 days.</p>\n  </details>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Accordion"},"a11yNotes":["Use native details/summary or buttons with aria-expanded","Keep headings operable with Enter and Space","Keep collapsed content out of the tab order"],"tags":["layout"]},{"id":"alert","name":"Alert","category":"feedback","aliases":["alert banner","notification banner","inline alert"],"looksLike":["wide message strip with a warning","notice that stays above the form","colored box explaining an error on the page"],"definition":"A visible message that stays in the page to explain a problem, warning, or update, often near the content it concerns.","whenToUse":["Form-level errors","Persistent notices about a service"],"notConfusedWith":[{"id":"toast","difference":"Appears briefly and often disappears automatically; an alert usually stays until resolved or dismissed."}],"related":["toast","modal","badge"],"prompts":{"short":"Add an alert with a clear message that stays visible until resolved.","detailed":"Add a persistent alert near the affected content with a clear heading and helpful next step. Use text as well as color. Reserve role=\"alert\" for urgent dynamic messages; use role=\"status\" for routine updates and a normal section for static notices. Do not move focus or auto-dismiss essential information."},"snippets":{"html":"<section aria-labelledby=\"service-notice\">\n  <h2 id=\"service-notice\">Scheduled maintenance</h2>\n  <p>Uploads will be unavailable tonight from 10 to 11 PM. Save your work before then.</p>\n</section>\n<!-- For urgent dynamically inserted errors, use role=\"alert\"; routine updates use role=\"status\". -->","vue":"<script setup>\nimport { useId } from \"vue\";\n\nconst uid = useId();\n</script>\n\n<template>\n  <section :aria-labelledby=\"uid + '-service-notice'\">\n    <h2 :id=\"uid + '-service-notice'\">Scheduled maintenance</h2>\n    <p>Uploads will be unavailable tonight from 10 to 11 PM. Save your work before then.</p>\n  </section>\n  <!-- For urgent dynamically inserted errors, use role=\"alert\"; routine updates use role=\"status\". -->\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Alert"},"a11yNotes":["Keep essential messages visible and avoid relying only on color","Use assertive alerts only for urgent dynamic messages","Do not move focus to a notice unexpectedly"],"tags":["feedback"]},{"id":"avatar","name":"Avatar","category":"layout","aliases":["profile picture","user picture","profile image"],"looksLike":["small round photo beside a persons name","circle with initials when there is no photo","little face picture next to a comment"],"definition":"A small image or initials representing a person or account, often shown beside a name.","whenToUse":["Comment authors","Account identity in a header"],"notConfusedWith":[{"id":"badge","difference":"Shows a short status or count rather than a person or account."}],"related":["badge","card","navbar"],"prompts":{"short":"Add an avatar with initials as a fallback and an accessible identity label.","detailed":"Add a circular avatar beside a visible user name. Use an empty image alt when the adjacent name already identifies the person. Fall back to initials if the photo is missing or fails. If the avatar is the only content of an action, give that button or link an accessible name."},"snippets":{"reactTailwind":"\"use client\";\nimport { useState } from \"react\";\n\nexport function Avatar({ src, name, initials }: {\n  src?: string;\n  name: string;\n  initials: string;\n}) {\n  const [failedSrc, setFailedSrc] = useState<string>();\n  return (\n    <span className=\"inline-flex items-center gap-2\">\n      {src && src !== failedSrc ? (\n        <img src={src} alt=\"\" width={44} height={44} onError={() => setFailedSrc(src)} className=\"size-11 rounded-full object-cover\" />\n      ) : (\n        <span aria-hidden=\"true\" className=\"grid size-11 shrink-0 place-items-center rounded-full border\">{initials}</span>\n      )}\n      <span>{name}</span>\n    </span>\n  );\n}","vue":"<script setup>\ndefineProps({ name: { type: String, default: \"Alex Morgan\" }, initials: { type: String, default: \"AM\" } });\n</script>\n\n<template>\n  <span role=\"img\" :aria-label=\"name\" class=\"avatar\">{{ initials }}</span>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n.avatar { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; font-weight: bold; }\n</style>"},"libraries":{"shadcn/ui":"Avatar"},"a11yNotes":["Avoid redundant image alt when a visible name is adjacent","Provide an accessible name for an avatar-only action","Do not use the photo alone to communicate status"],"tags":["layout"]},{"id":"badge","name":"Badge","category":"feedback","aliases":["status badge","count badge","status pill"],"looksLike":["small pill with a status word inside","tiny number next to a label","little colored tag saying new or pending"],"definition":"A compact label that communicates a status, category, or count beside another item.","whenToUse":["Unread message counts","Short status labels on cards"],"notConfusedWith":[{"id":"button","difference":"Performs an action; a badge usually just communicates information."}],"related":["card","avatar","alert"],"prompts":{"short":"Add a badge showing a short status label without relying on color alone.","detailed":"Add a compact badge beside the item it describes. Use readable text for its status or count, maintain text contrast, and do not rely on color alone. Keep it non-interactive unless it performs an action; if interactive, use a properly labeled button or link."},"snippets":{"html":"<p>Application status: <span style=\"border:1px solid currentColor; border-radius:999px; padding:2px 8px; font-weight:bold\">Pending</span></p>","vue":"<template>\n  <p>Application status: <span style=\"border:1px solid currentColor; border-radius:999px; padding:2px 8px; font-weight:bold\">Pending</span></p>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Badge"},"a11yNotes":["Express status in text as well as color","Keep text contrast at least 4.5:1","Use a real button or link only if the badge is interactive"],"tags":["feedback"]},{"id":"bento-grid","name":"Bento grid","category":"layout","aliases":["bento layout","mixed-size card grid"],"looksLike":["tiles of different sizes arranged like a collage","one large box next to several smaller boxes","dashboard of uneven rectangles fitted neatly together"],"definition":"A layout of differently sized tiles arranged into a tidy grid to highlight related features or information.","whenToUse":["Feature summaries","Dashboard highlights"],"notConfusedWith":[{"id":"card","difference":"Groups one item; a bento grid arranges several containers with different visual emphasis."}],"related":["card","hero-section","data-table"],"prompts":{"short":"Add a bento grid with varied tile sizes that stacks on small screens.","detailed":"Add a responsive grid of related tiles with one featured tile spanning extra columns on larger screens. Stack tiles on small screens, keep DOM order aligned with the visual reading order, and use meaningful headings. Avoid fixed heights that clip text when zoomed."},"snippets":{"reactTailwind":"export function FeatureGrid() {\n  return (\n    <section aria-label=\"Product features\" className=\"grid grid-cols-1 gap-4 md:grid-cols-3\">\n      <article className=\"rounded-xl border p-6 md:col-span-2\">\n        <h2>Plan together</h2>\n        <p>Keep shared plans in one place.</p>\n      </article>\n      <article className=\"rounded-xl border p-6\">\n        <h2>Stay informed</h2>\n        <p>See the latest changes.</p>\n      </article>\n      <article className=\"rounded-xl border p-6 md:col-span-3\">\n        <h2>Find your next task</h2>\n        <p>Explore upcoming work across your projects.</p>\n      </article>\n    </section>\n  );\n}","vue":"<template>\n  <section aria-label=\"Product highlights\" class=\"grid\">\n    <article class=\"featured\"><h2>Everything in one place</h2><p>Organize your projects and notes.</p></article>\n    <article><h2>Quick search</h2><p>Find what you need.</p></article>\n    <article><h2>Team updates</h2><p>Stay up to date.</p></article>\n  </section>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n.grid { display: grid; gap: 16px; }\narticle { padding: 24px; border: 1px solid currentColor; border-radius: 16px; }\n@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .featured { grid-row: span 2; } }\n</style>"},"libraries":{},"a11yNotes":["Keep visual order consistent with DOM and keyboard order","Use meaningful headings and semantic controls","Let content grow and stack at narrow widths"],"tags":["layout"]},{"id":"bottom-sheet","name":"Bottom sheet","category":"overlay","aliases":["bottom drawer","action sheet","slide-up panel"],"looksLike":["panel that slides up from the bottom of the screen","mobile menu that rises from the bottom","card with a little handle bar at the top that you can drag down"],"definition":"A panel that slides up from the bottom edge, common on mobile for actions, filters, or details. Often has a drag handle and can be swiped away.","whenToUse":["Mobile action menus","Filters and sort options on phones","Detail previews such as a map pin card"],"notConfusedWith":[{"id":"drawer","difference":"Slides in from the side instead of the bottom."},{"id":"modal","difference":"Centered, and not swipe-to-dismiss."}],"related":["drawer","modal"],"prompts":{"short":"Add a bottom sheet with a drag handle. Swipe down or tap outside to close.","detailed":"Add a mobile bottom sheet that slides up from the bottom with a drag handle, rounded top corners, and a dimmed backdrop. Support swipe-down and backdrop tap to close, cap its height at 85vh with internal scroll, and respect the safe-area inset."},"snippets":{"reactTailwind":"<div className=\"fixed inset-x-0 bottom-0 max-h-[85vh] overflow-y-auto rounded-t-2xl bg-white p-4 pb-[env(safe-area-inset-bottom)] shadow-2xl\">\n  <div className=\"mx-auto mb-3 h-1.5 w-10 rounded-full bg-gray-300\" />\n  {children}\n</div>","vue":"<script setup>\nimport { useId, ref } from \"vue\";\nconst dialog = ref(null);\nconst trigger = ref(null);\nconst uid = useId();\n</script>\n\n<template>\n  <button ref=\"trigger\" type=\"button\" @click=\"dialog.showModal()\">Open bottom sheet</button>\n  <dialog ref=\"dialog\" :aria-labelledby=\"uid + '-title'\" @close=\"trigger?.focus()\">\n    <h2 :id=\"uid + '-title'\">Quick actions</h2>\n    <p>Review the available options.</p>\n    <a href=\"/guides/\">Browse guides</a>\n    <form method=\"dialog\"><button autofocus>Close</button></form>\n  </dialog>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\ndialog { box-sizing: border-box; max-width: min(100%, 28rem); overflow: auto; background: Canvas; color: CanvasText; }\ndialog::backdrop { background: rgb(0 0 0 / 50%); }\ndialog { margin: auto 0 0; width: 100%; border-radius: 16px 16px 0 0; }\n</style>"},"libraries":{"shadcn/ui":"Drawer (built on Vaul)","MUI":"SwipeableDrawer (anchor bottom)","Chakra UI":"Drawer (placement bottom)","Mantine":"Drawer (position bottom)"},"a11yNotes":["Provide a close button as well as the swipe gesture","Trap focus while it is open","Use the dialog role and give it a name"],"tags":["mobile","overlay","gesture"]},{"id":"breadcrumb","name":"Breadcrumb","category":"navigation","aliases":["breadcrumbs","location trail"],"looksLike":["trail of links showing where I am","home then category then current page","small links separated by arrows above the title"],"definition":"A trail of parent-page links that shows where the current page sits in a site hierarchy.","whenToUse":["Nested documentation pages","Product category navigation"],"notConfusedWith":[{"id":"navbar","difference":"Shows the main destinations rather than the current page hierarchy."}],"related":["navbar","tabs"],"prompts":{"short":"Add a breadcrumb with linked parent pages and a marked current page.","detailed":"Add a labeled breadcrumb navigation with an ordered list of parent links and aria-current on the current page. Hide separators from assistive technology, allow wrapping, and give links 44px touch targets."},"snippets":{"html":"<nav aria-label=\"Breadcrumb\">\n  <ol style=\"display:flex; flex-wrap:wrap; align-items:center; gap:8px; list-style:none; padding:0\">\n    <li><a href=\"/\" style=\"display:inline-flex; align-items:center; min-height:44px; min-width:44px\">Home</a></li>\n    <li aria-hidden=\"true\">/</li>\n    <li><a href=\"/guides/\" style=\"display:inline-flex; align-items:center; min-height:44px; min-width:44px\">Guides</a></li>\n    <li aria-hidden=\"true\">/</li>\n    <li><span aria-current=\"page\">Getting started</span></li>\n  </ol>\n</nav>","vue":"<template>\n  <nav aria-label=\"Breadcrumb\">\n    <ol style=\"display:flex; flex-wrap:wrap; align-items:center; gap:8px; list-style:none; padding:0\">\n      <li><a href=\"/\" style=\"display:inline-flex; align-items:center; min-height:44px; min-width:44px\">Home</a></li>\n      <li aria-hidden=\"true\">/</li>\n      <li><a href=\"/guides/\" style=\"display:inline-flex; align-items:center; min-height:44px; min-width:44px\">Guides</a></li>\n      <li aria-hidden=\"true\">/</li>\n      <li><span aria-current=\"page\">Getting started</span></li>\n    </ol>\n  </nav>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Breadcrumb"},"a11yNotes":["Label the navigation landmark","Mark the current page with aria-current=\"page\"","Hide separators from screen readers and let links wrap"],"tags":["navigation"]},{"id":"button","name":"Button","category":"input","aliases":["action button","push button"],"looksLike":["filled rectangle you press to do something","clickable box labeled save or submit","rounded control that starts an action"],"definition":"An interactive control that performs an action, such as submitting a form or opening a panel.","whenToUse":["Submitting a form","Starting or confirming an action"],"notConfusedWith":[{"id":"toggle-switch","difference":"Represents an on/off setting rather than a one-time action."}],"related":["text-input","modal"],"prompts":{"short":"Add a button with a clear action label and visible keyboard focus.","detailed":"Add a native button with an explicit type, a descriptive action label, a visible focus ring, and a target at least 44px square. Use a link instead when navigating to another page."},"snippets":{"html":"<form action=\"/search\" method=\"get\">\n  <label for=\"search-query\">Search guides</label>\n  <input id=\"search-query\" name=\"q\" type=\"search\" style=\"min-height:44px; max-width:100%; box-sizing:border-box\">\n  <button type=\"submit\" style=\"min-height:44px; min-width:44px\">Search</button>\n</form>","vue":"<script setup>\nimport { useId } from \"vue\";\n\nconst uid = useId();\n</script>\n\n<template>\n  <form action=\"/search\" method=\"get\">\n    <label :for=\"uid + '-search-query'\">Search guides</label>\n    <input :id=\"uid + '-search-query'\" name=\"q\" type=\"search\" style=\"min-height:44px; max-width:100%; box-sizing:border-box\">\n    <button type=\"submit\" style=\"min-height:44px; min-width:44px\">Search</button>\n  </form>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Button"},"a11yNotes":["Use a native button with an explicit type","Provide an accessible name and visible focus","Support Enter and Space with a 44px target"],"tags":["input"]},{"id":"card","name":"Card","category":"layout","aliases":["content card","content tile"],"looksLike":["box with a picture title and description","separate rectangle containing one item","small bordered block with a heading and a link"],"definition":"A container that groups related information about one item, often with a title, image, description, or action.","whenToUse":["Product summaries","Article previews"],"notConfusedWith":[{"id":"modal","difference":"Appears over the page and blocks interaction; a card stays in the page layout."}],"related":["button","skeleton-loader"],"prompts":{"short":"Add a card grouping a title and description with a clear action link.","detailed":"Add a responsive card with a semantic heading, description, and descriptive action link. Keep the heading order logical, avoid nesting interactive controls inside links, and provide a visible focus ring and 44px link target."},"snippets":{"html":"<article>\n  <h2>Planning a garden</h2>\n  <p>A practical guide to choosing your first plants.</p>\n  <a href=\"/guides/garden/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Read the garden guide</a>\n</article>","vue":"<template>\n  <article>\n    <h2>Planning a garden</h2>\n    <p>A practical guide to choosing your first plants.</p>\n    <a href=\"/guides/garden/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Read the garden guide</a>\n  </article>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Card"},"a11yNotes":["Use a heading that fits the page hierarchy","Use descriptive links instead of a clickable div","Do not nest buttons inside links"],"tags":["layout"]},{"id":"carousel","name":"Carousel","category":"layout","aliases":["slideshow","content slider","slide gallery"],"looksLike":["pictures you move through with left and right arrows","one featured item at a time with next and previous controls","row of dots underneath changing pictures"],"definition":"A sequence of slides or items shown in the same space, with controls for moving between them.","whenToUse":["Browsing a small set of featured items","Manually browsing product photos"],"notConfusedWith":[{"id":"tabs","difference":"Uses labeled choices for direct access to panels rather than moving through a slide sequence."}],"related":["card","tabs","pagination"],"prompts":{"short":"Add a carousel with labeled previous and next buttons. Keep autoplay off.","detailed":"Add a manually controlled carousel with labeled previous and next buttons, a visible slide position, and a named region. Keep focus on the controls as slides change, hide inactive content from keyboard and screen-reader navigation, and announce the new position politely. Use 44px targets and avoid autoplay."},"snippets":{"reactTailwind":"\"use client\";\nimport { useState } from \"react\";\n\nconst slides = [\n  { title: \"Plan your garden\", text: \"Choose plants that suit your space.\" },\n  { title: \"Prepare the soil\", text: \"Give roots room and good drainage.\" },\n  { title: \"Water consistently\", text: \"Check the soil before watering.\" },\n];\n\nexport function GuideCarousel() {\n  const [index, setIndex] = useState(0);\n  const slide = slides[index];\n  return (\n    <section aria-label=\"Gardening guides\" aria-roledescription=\"carousel\">\n      <div role=\"group\" aria-roledescription=\"slide\" aria-label={`${index + 1} of ${slides.length}`}>\n        <h2>{slide.title}</h2>\n        <p>{slide.text}</p>\n      </div>\n      <div className=\"flex flex-wrap items-center gap-2\">\n        <button type=\"button\" className=\"min-h-11 min-w-11 px-3 focus-visible:outline-2\" aria-label=\"Previous slide\" onClick={() => setIndex((i) => (i - 1 + slides.length) % slides.length)}>Previous</button>\n        <button type=\"button\" className=\"min-h-11 min-w-11 px-3 focus-visible:outline-2\" aria-label=\"Next slide\" onClick={() => setIndex((i) => (i + 1) % slides.length)}>Next</button>\n      </div>\n      <p role=\"status\" aria-atomic=\"true\">Slide {index + 1} of {slides.length}: {slide.title}</p>\n    </section>\n  );\n}","vue":"<script setup>\nimport { ref } from \"vue\";\nconst index = ref(0);\nconst slides = [{ title: \"Start a garden\", text: \"Choose your first plants.\" }, { title: \"Care for plants\", text: \"Learn when to water.\" }];\n</script>\n\n<template>\n  <section aria-roledescription=\"carousel\" aria-label=\"Featured guides\">\n    <button type=\"button\" @click=\"index = (index + slides.length - 1) % slides.length\">Previous slide</button>\n    <button type=\"button\" @click=\"index = (index + 1) % slides.length\">Next slide</button>\n    <div aria-live=\"polite\" aria-atomic=\"true\">\n      <article role=\"group\" aria-roledescription=\"slide\" :aria-label=\"`${index + 1} of ${slides.length}`\">\n        <h2>{{ slides[index].title }}</h2><p>{{ slides[index].text }}</p>\n      </article>\n    </div>\n  </section>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Carousel"},"a11yNotes":["Give the carousel and its controls accessible names","Keep focus on controls and announce manual slide changes politely","Keep inactive slides out of navigation and avoid autoplay"],"tags":["layout"]},{"id":"checkbox","name":"Checkbox","category":"input","aliases":["check box","tick box"],"looksLike":["little square you tick next to a choice","boxes that let me pick several options","square with a check mark when selected"],"definition":"A control that records a checked or unchecked choice. Several checkboxes can be selected independently.","whenToUse":["Choosing multiple preferences","Agreeing to terms in a form"],"notConfusedWith":[{"id":"toggle-switch","difference":"Usually applies an on/off setting immediately rather than collecting a form choice."}],"related":["toggle-switch","text-input","button"],"prompts":{"short":"Add a checkbox with a clickable label and keyboard toggling.","detailed":"Add a native checkbox with an associated visible label and a clickable label area at least 44px high. Let Space toggle it, keep its focus indicator visible, and group related choices with fieldset and legend."},"snippets":{"html":"<label style=\"display:flex; align-items:center; gap:8px; min-height:44px\">\n  <input type=\"checkbox\" name=\"newsletter\" value=\"yes\">\n  Send me the monthly newsletter\n</label>","vue":"<script setup>\nimport { ref } from \"vue\";\nconst subscribed = ref(false);\n</script>\n\n<template>\n  <label><input v-model=\"subscribed\" type=\"checkbox\" name=\"newsletter\"> Send me the monthly newsletter</label>\n  <p>Newsletter: {{ subscribed ? 'on' : 'off' }}</p>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\nlabel { display: flex; align-items: center; gap: 8px; min-height: 44px; }\n</style>"},"libraries":{"shadcn/ui":"Checkbox"},"a11yNotes":["Associate the checkbox with its label","Support Space to toggle and show keyboard focus","Use fieldset and legend for related choices"],"tags":["input"]},{"id":"command-palette","name":"Command palette","category":"overlay","aliases":["command launcher","quick action search"],"looksLike":["search box floating over the page for actions","type a command to find something to do","popup list of commands filtered as I type"],"definition":"A searchable panel for finding and running application actions or navigating to destinations without browsing menus.","whenToUse":["Quick access to many commands","Keyboard-friendly navigation in complex apps"],"notConfusedWith":[{"id":"select","difference":"Chooses a field value; a command palette runs actions or opens destinations."}],"related":["modal","dropdown-menu","text-input"],"prompts":{"short":"Add a command palette that filters actions as I type and closes with Escape.","detailed":"Add a labeled dialog containing a search field and filtered command buttons. Keep focus inside while open, support keyboard access to results, close on Escape or selection, and return focus to the trigger. Include a close button and a clear no-results message. Do not override browser keyboard shortcuts."},"snippets":{"reactTailwind":"\"use client\";\nimport { useId, useRef, useState } from \"react\";\n\nexport function CommandPalette({ onAction }: { onAction: (id: string) => void }) {\n  const dialog = useRef<HTMLDialogElement>(null);\n  const titleId = useId();\n  const searchId = useId();\n  const [query, setQuery] = useState(\"\");\n  const commands = [\n    { id: \"new-project\", label: \"Create a project\" },\n    { id: \"settings\", label: \"Open settings\" },\n  ];\n  const matches = commands.filter((item) => item.label.toLowerCase().includes(query.toLowerCase()));\n  return (\n    <>\n      <button type=\"button\" className=\"min-h-11 min-w-11 px-3\" onClick={() => { setQuery(\"\"); dialog.current?.showModal(); }}>Open commands</button>\n      <dialog ref={dialog} aria-labelledby={titleId} className=\"m-auto w-full max-w-md rounded-xl p-4 backdrop:bg-black/40\">\n        <h2 id={titleId}>Commands</h2>\n        <label htmlFor={searchId}>Find an action</label>\n        <input id={searchId} type=\"search\" value={query} onChange={(event) => setQuery(event.target.value)} className=\"min-h-11 w-full border p-2\" />\n        <ul aria-label=\"Matching commands\">\n          {matches.map((item) => (\n            <li key={item.id}>\n              <button type=\"button\" className=\"min-h-11 w-full p-2 text-left\" onClick={() => { dialog.current?.close(); onAction(item.id); }}>{item.label}</button>\n            </li>\n          ))}\n        </ul>\n        <p role=\"status\">{matches.length ? `${matches.length} actions available` : \"No matching actions\"}</p>\n        <button type=\"button\" className=\"min-h-11 min-w-11 px-3\" onClick={() => dialog.current?.close()}>Close</button>\n      </dialog>\n    </>\n  );\n}","vue":"<script setup>\nimport { useId, ref, computed } from \"vue\";\nconst trigger = ref(null);\nconst dialog = ref(null);\nconst query = ref(\"\");\nconst pages = [{ name: \"Guides\", href: \"/guides/\" }, { name: \"Settings\", href: \"/settings/\" }];\nconst matches = computed(() => pages.filter(page => page.name.toLowerCase().includes(query.value.trim().toLowerCase())));\nfunction open() { query.value = \"\"; dialog.value.showModal(); }\n// Native Tab navigates results; Escape closes the dialog.\nconst uid = useId();\n</script>\n\n<template>\n  <button ref=\"trigger\" type=\"button\" @click=\"open\">Find a page</button>\n  <dialog ref=\"dialog\" :aria-labelledby=\"uid + '-title'\" @close=\"trigger?.focus()\">\n    <h2 :id=\"uid + '-title'\">Find a page</h2>\n    <label :for=\"uid + '-query'\">Search pages</label>\n    <input :id=\"uid + '-query'\" v-model=\"query\" type=\"search\" autofocus>\n    <p role=\"status\">{{ matches.length }} results</p>\n    <ul><li v-for=\"page in matches\" :key=\"page.href\"><a :href=\"page.href\">{{ page.name }}</a></li></ul>\n    <form method=\"dialog\"><button>Close</button></form>\n  </dialog>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\ndialog { max-width: min(28rem, 90vw); box-sizing: border-box; background: Canvas; color: CanvasText; }\ndialog::backdrop { background: rgb(0 0 0 / 50%); }\n</style>"},"libraries":{"shadcn/ui":"Command"},"a11yNotes":["Label the dialog and search input","Trap focus in the open dialog and restore it when dismissed","Keep results keyboard reachable and announce no matches"],"tags":["overlay"]},{"id":"data-table","name":"Data table","category":"layout","aliases":["table","tabular data","records table"],"looksLike":["information lined up in rows and columns","spreadsheet-like list with headings above each column","names dates and amounts arranged in a grid"],"definition":"A structured view of records in rows and fields in columns, with headers explaining how to read the values.","whenToUse":["Comparing records","Displaying orders or account activity"],"notConfusedWith":[{"id":"bento-grid","difference":"Arranges content tiles for emphasis rather than aligning fields across records."}],"related":["pagination","checkbox","select"],"prompts":{"short":"Add a data table with a descriptive caption and associated column headers.","detailed":"Add a semantic table with a caption, column headers, and row headers where helpful. Keep cell relationships intact on small screens. If horizontal scrolling is necessary, provide a labeled keyboard-focusable scroll region. If sorting is added, use header buttons and expose the sorted column with aria-sort."},"snippets":{"html":"<div role=\"region\" aria-label=\"Recent orders table\" tabindex=\"0\" style=\"max-width:100%; overflow:auto\">\n  <table style=\"width:100%; border-collapse:collapse\">\n    <caption>Recent orders</caption>\n    <thead>\n      <tr><th scope=\"col\">Order</th><th scope=\"col\">Status</th><th scope=\"col\">Total</th></tr>\n    </thead>\n    <tbody>\n      <tr><th scope=\"row\">A104</th><td>Delivered</td><td>$24.00</td></tr>\n      <tr><th scope=\"row\">A105</th><td>Processing</td><td>$18.00</td></tr>\n    </tbody>\n  </table>\n</div>","vue":"<template>\n  <div role=\"region\" aria-label=\"Recent orders table\" tabindex=\"0\" style=\"max-width:100%; overflow:auto\">\n    <table style=\"width:100%; border-collapse:collapse\">\n      <caption>Recent orders</caption>\n      <thead>\n        <tr><th scope=\"col\">Order</th><th scope=\"col\">Status</th><th scope=\"col\">Total</th></tr>\n      </thead>\n      <tbody>\n        <tr><th scope=\"row\">A104</th><td>Delivered</td><td>$24.00</td></tr>\n        <tr><th scope=\"row\">A105</th><td>Processing</td><td>$18.00</td></tr>\n      </tbody>\n    </table>\n  </div>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{},"a11yNotes":["Use table, caption, and scoped header cells","Keep overflow regions keyboard accessible with visible focus","Use real buttons and aria-sort if sorting is implemented"],"tags":["layout"]},{"id":"date-picker","name":"Date picker","category":"input","aliases":["date field","calendar picker"],"looksLike":["small calendar where I choose a day","field that opens a grid of dates","month and numbered days with one day highlighted"],"definition":"A field for choosing a date, often with a calendar popup and a way to enter the date directly.","whenToUse":["Booking a date","Choosing a deadline"],"notConfusedWith":[{"id":"select","difference":"Chooses from general options rather than calendar dates."}],"related":["text-input","select","popover"],"prompts":{"short":"Add a labeled date picker with keyboard input and a visible selected date.","detailed":"Add a native date input with an associated label and visible focus. Explain any date limits and show errors beside the field. Preserve keyboard entry, give the input a 44px target, and avoid forcing users to navigate a custom calendar for distant dates."},"snippets":{"html":"<label for=\"due-date\">Due date</label>\n<input id=\"due-date\" name=\"dueDate\" type=\"date\" aria-describedby=\"due-date-help\" style=\"min-height:44px; width:100%; box-sizing:border-box\">\n<p id=\"due-date-help\">Choose the day this task should be finished.</p>","vue":"<script setup>\nimport { useId, ref } from \"vue\";\nconst date = ref(\"\");\nconst uid = useId();\n</script>\n\n<template>\n  <label :for=\"uid + '-date'\">Due date</label>\n  <input :id=\"uid + '-date'\" v-model=\"date\" name=\"dueDate\" type=\"date\" :aria-describedby=\"uid + '-help'\">\n  <p :id=\"uid + '-help'\">Choose the day this task should be finished.</p>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Calendar + Popover (Date Picker composition)"},"a11yNotes":["Associate a visible label and any help or error text","Allow keyboard entry and preserve visible focus","For custom calendars, manage focus and announce dates and month changes"],"tags":["input"]},{"id":"drawer","name":"Drawer","category":"overlay","aliases":["off-canvas","side sheet","slide-over","side panel","flyout menu"],"looksLike":["panel that slides in from the side","menu that covers part of the screen","thing that opens when I tap the three lines","sliding sidebar with a dark overlay behind it"],"definition":"A panel that slides in from the edge of the screen, usually holding navigation or actions, and sits on top of the page with a dimmed backdrop.","whenToUse":["Mobile navigation menus","Filters or settings that shouldn't leave the current page","Cart or detail previews"],"notConfusedWith":[{"id":"modal","difference":"Centered and blocks the page. Best for confirmations."},{"id":"popover","difference":"Small, anchored to a button, no backdrop."},{"id":"bottom-sheet","difference":"Slides up from below. Mostly mobile."}],"related":["hamburger-icon","modal","bottom-sheet","navbar"],"prompts":{"short":"Add a right-side drawer. Close on overlay click and Esc.","detailed":"Add a right-side drawer (320px wide) with a dimmed backdrop and a slide-in animation. Trap focus inside it, close on Esc or backdrop click, return focus to the trigger on close, and mark it aria-modal."},"snippets":{"html":"<button id=\"open-menu\">Menu</button>\n<div id=\"backdrop\" hidden></div>\n<aside id=\"drawer\" role=\"dialog\" aria-modal=\"true\" aria-label=\"Menu\" hidden>\n  <button id=\"close-menu\" aria-label=\"Close menu\">×</button>\n  <!-- links go here -->\n</aside>","reactTailwind":"export function Drawer({ open, onClose, children }: {\n  open: boolean;\n  onClose: () => void;\n  children: React.ReactNode;\n}) {\n  if (!open) return null;\n  return (\n    <>\n      <div className=\"fixed inset-0 bg-black/40\" onClick={onClose} />\n      <aside\n        role=\"dialog\"\n        aria-modal=\"true\"\n        aria-label=\"Menu\"\n        className=\"fixed inset-y-0 right-0 w-80 bg-white p-6 shadow-xl\"\n      >\n        <button onClick={onClose} aria-label=\"Close\">×</button>\n        {children}\n      </aside>\n    </>\n  );\n}","vue":"<script setup>\nimport { useId, ref } from \"vue\";\nconst dialog = ref(null);\nconst trigger = ref(null);\nconst uid = useId();\n</script>\n\n<template>\n  <button ref=\"trigger\" type=\"button\" @click=\"dialog.showModal()\">Open drawer</button>\n  <dialog ref=\"dialog\" :aria-labelledby=\"uid + '-title'\" @close=\"trigger?.focus()\">\n    <h2 :id=\"uid + '-title'\">Navigation</h2>\n    <p>Review the available options.</p>\n    <a href=\"/guides/\">Browse guides</a>\n    <form method=\"dialog\"><button autofocus>Close</button></form>\n  </dialog>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\ndialog { box-sizing: border-box; max-width: min(100%, 28rem); overflow: auto; background: Canvas; color: CanvasText; }\ndialog::backdrop { background: rgb(0 0 0 / 50%); }\ndialog { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; }\n</style>"},"libraries":{"shadcn/ui":"Sheet","MUI":"Drawer","Chakra UI":"Drawer","Mantine":"Drawer","Radix UI":"Dialog, styled as a side panel"},"a11yNotes":["Trap focus while it is open","Close on Esc and on backdrop click","Return focus to the button that opened it"],"tags":["navigation","mobile","overlay"]},{"id":"dropdown-menu","name":"Dropdown menu","category":"overlay","aliases":["action menu","drop-down menu"],"looksLike":["list of actions that opens below a button","small floating list with edit and copy choices","click more to reveal a vertical list of commands"],"definition":"A menu of actions that opens next to a trigger button and closes after choosing an action or dismissing it.","whenToUse":["Secondary actions for an item","Compact groups of commands"],"notConfusedWith":[{"id":"popover","difference":"Holds general content rather than a keyboard-navigable list of menu commands."}],"related":["button","popover","navbar"],"prompts":{"short":"Add a dropdown menu with keyboard navigation and Escape dismissal.","detailed":"Add a button-triggered dropdown menu. Move focus into the menu on keyboard opening, support arrow-key navigation, and close on selection or Escape. Return focus to the trigger on dismissal, expose the expanded state, and use 44px targets."},"snippets":{"reactTailwind":"\"use client\";\n// Requires the Base UI variant of shadcn/ui dropdown-menu in the consuming project.\nimport { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem } from \"@/components/ui/dropdown-menu\";\n\nexport function DocumentMenu({ onRename, onDuplicate }: {\n  onRename: () => void;\n  onDuplicate: () => void;\n}) {\n  return (\n    <DropdownMenu>\n      <DropdownMenuTrigger className=\"min-h-11 min-w-11 px-4 focus-visible:outline-2 focus-visible:outline-offset-2\">Document actions</DropdownMenuTrigger>\n      <DropdownMenuContent>\n        <DropdownMenuItem onClick={onRename} className=\"min-h-11\">Rename</DropdownMenuItem>\n        <DropdownMenuItem onClick={onDuplicate} className=\"min-h-11\">Duplicate</DropdownMenuItem>\n      </DropdownMenuContent>\n    </DropdownMenu>\n  );\n}","vue":"<template>\n  <!-- A disclosure of links uses native Tab navigation, not ARIA menu semantics. -->\n  <details>\n    <summary aria-label=\"Project actions\">Project actions</summary>\n    <nav aria-label=\"Project actions\">\n      <a href=\"/projects/edit/\">Edit project</a>\n      <a href=\"/projects/share/\">Share project</a>\n    </nav>\n  </details>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\nsummary { cursor: pointer; min-width: 44px; }\nnav { display: grid; border: 1px solid currentColor; padding: 8px; }\n</style>"},"libraries":{"shadcn/ui":"Dropdown Menu"},"a11yNotes":["Use a named trigger with expanded state","Support arrow keys and Escape","Manage menu focus and return it to the trigger on dismissal"],"tags":["overlay"]},{"id":"empty-state","name":"Empty state","category":"feedback","aliases":["no-results state","zero state","blank slate"],"looksLike":["message saying there is nothing here yet","empty list with a suggestion to add something","no results found with advice to change my search"],"definition":"A helpful message shown when a view has no items, explaining why it is empty and what the person can do next.","whenToUse":["A new account with no projects","Searches with no matching results"],"notConfusedWith":[{"id":"skeleton-loader","difference":"Represents content still loading; an empty state appears after loading confirms there are no items."}],"related":["alert","button","skeleton-loader"],"prompts":{"short":"Add an empty state explaining why no items appear and offering a next step.","detailed":"Add a clear empty-state heading, a short explanation, and a relevant next action. Distinguish no content from loading or errors. Use a real link or button with visible focus and a 44px target; hide any decorative illustration from screen readers."},"snippets":{"html":"<section aria-labelledby=\"empty-title\">\n  <h2 id=\"empty-title\">No projects yet</h2>\n  <p>Create a project to start organizing your work.</p>\n  <a href=\"/projects/new/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Create your first project</a>\n</section>","vue":"<script setup>\nimport { useId } from \"vue\";\n\nconst uid = useId();\n</script>\n\n<template>\n  <section :aria-labelledby=\"uid + '-empty-title'\">\n    <h2 :id=\"uid + '-empty-title'\">No projects yet</h2>\n    <p>Create a project to start organizing your work.</p>\n    <a href=\"/projects/new/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Create your first project</a>\n  </section>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Empty"},"a11yNotes":["Use a meaningful heading and clear next step","Hide decorative artwork from assistive technology","Announce dynamically updated result counts politely"],"tags":["feedback"]},{"id":"file-upload","name":"File upload","category":"input","aliases":["file picker","upload field","file input"],"looksLike":["choose file button beside a filename","box where I attach a document","area asking me to drop a file or browse"],"definition":"A control for selecting files to send to an application. It may include a drop area, but must also offer a keyboard-operable file picker.","whenToUse":["Attaching a document","Selecting a profile photo"],"notConfusedWith":[{"id":"text-input","difference":"Accepts typed text rather than a file selected from the device."}],"related":["button","progress-bar","alert"],"prompts":{"short":"Add a labeled file upload with a file picker and clear file-type guidance.","detailed":"Add a native file input with a visible label and associated help text. Explain accepted types and size limits, report validation errors beside the field, and show upload progress separately from selection. Keep a keyboard-operable picker even if drag and drop is offered; validate uploads on the server."},"snippets":{"html":"<label for=\"attachment\">Attach a PDF document</label>\n<input id=\"attachment\" name=\"attachment\" type=\"file\" accept=\".pdf,application/pdf\" aria-describedby=\"attachment-help\" style=\"min-height:44px; width:100%; box-sizing:border-box\">\n<p id=\"attachment-help\">Choose a PDF. Selecting a file does not upload it yet.</p>\n<!-- Submit using your application's upload flow and validate the file on the server; accept is only a picker hint. -->","vue":"<script setup>\nimport { useId } from \"vue\";\n\nconst uid = useId();\n</script>\n\n<template>\n  <label :for=\"uid + '-attachment'\">Attach a PDF document</label>\n  <input :id=\"uid + '-attachment'\" name=\"attachment\" type=\"file\" accept=\".pdf,application/pdf\" :aria-describedby=\"uid + '-attachment-help'\" style=\"min-height:44px; width:100%; box-sizing:border-box\">\n  <p :id=\"uid + '-attachment-help'\">Choose a PDF. Selecting a file does not upload it yet.</p>\n  <!-- Submit using your application's upload flow and validate the file on the server; accept is only a picker hint. -->\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{},"a11yNotes":["Associate a visible label and file requirements","Offer keyboard file selection, not drag and drop alone","Announce validation errors and upload status without moving focus unexpectedly"],"tags":["input"]},{"id":"footer","name":"Footer","category":"navigation","aliases":["site footer","page footer"],"looksLike":["links and copyright at the bottom of the page","bottom section with contact and privacy links","last strip of the website below the main content"],"definition":"The closing section of a page, often containing secondary navigation, contact information, and copyright details.","whenToUse":["Site-wide support and legal links","Contact information below the main content"],"notConfusedWith":[{"id":"navbar","difference":"Usually provides primary navigation near the top of a page."}],"related":["navbar","sidebar","hero-section"],"prompts":{"short":"Add a footer with labeled secondary navigation and readable contact information.","detailed":"Add a top-level footer after main content with grouped secondary links and contact information. Label its navigation distinctly, allow links to wrap on small screens, and provide visible focus and 44px link targets. Keep the reading order logical."},"snippets":{"html":"<!-- Place this top-level footer after the page main element. -->\n<footer>\n  <nav aria-label=\"Footer links\" style=\"display:flex; flex-wrap:wrap; gap:16px\">\n    <a href=\"/contact/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Contact</a>\n    <a href=\"/privacy/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Privacy</a>\n    <a href=\"/accessibility/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Accessibility</a>\n  </nav>\n  <p>Copyright UI Lexicon contributors</p>\n</footer>","vue":"<template>\n  <!-- Place this top-level footer after the page main element. -->\n  <footer>\n    <nav aria-label=\"Footer links\" style=\"display:flex; flex-wrap:wrap; gap:16px\">\n      <a href=\"/contact/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Contact</a>\n      <a href=\"/privacy/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Privacy</a>\n      <a href=\"/accessibility/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Accessibility</a>\n    </nav>\n    <p>Copyright UI Lexicon contributors</p>\n  </footer>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{},"a11yNotes":["Use a top-level footer for the page contentinfo landmark","Label navigation groups and use descriptive links","Keep targets large and links readable at narrow widths"],"tags":["navigation"]},{"id":"hamburger-icon","name":"Hamburger icon","category":"icons-assets","aliases":["menu icon","nav toggle","three-lines icon","menu button","burger menu"],"looksLike":["three horizontal lines stacked in a button","the icon you tap to open the menu on a phone","three lines icon"],"definition":"An icon of three stacked horizontal lines that opens a hidden navigation menu. It is the standard toggle for mobile menus and drawers.","whenToUse":["Collapsed mobile navigation","Opening a drawer or sidebar"],"notConfusedWith":[],"related":["navbar","drawer"],"prompts":{"short":"Add a hamburger button that opens the mobile menu.","detailed":"Add a 44px hamburger icon button (three lines) to the navbar on screens below 768px. Give it an aria-label, aria-expanded, and aria-controls pointing at the menu, and animate it to an X when open."},"snippets":{"html":"<button aria-label=\"Open menu\" aria-expanded=\"false\" aria-controls=\"menu\">\n  <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\"\n       stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n    <path d=\"M4 6h16M4 12h16M4 18h16\" />\n  </svg>\n</button>","reactTailwind":"import { Menu } from \"lucide-react\";\n\n<button\n  aria-label=\"Open menu\"\n  aria-expanded={open}\n  aria-controls=\"menu\"\n  className=\"grid h-11 w-11 place-items-center\"\n>\n  <Menu aria-hidden=\"true\" />\n</button>","vue":"<script setup>\nimport { useId, ref } from \"vue\";\nconst open = ref(false);\nconst uid = useId();\n</script>\n\n<template>\n  <button type=\"button\" aria-label=\"Toggle navigation\" :aria-expanded=\"open\" :aria-controls=\"uid + '-menu'\" @click=\"open = !open\">\n    <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\"><path d=\"M4 6h16M4 12h16M4 18h16\" /></svg>\n  </button>\n  <nav :id=\"uid + '-menu'\" v-show=\"open\" aria-label=\"Main\"><a href=\"/guides/\">Guides</a></nav>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\nbutton { min-width: 44px; }\n</style>"},"libraries":{"Lucide":"Menu","Heroicons":"Bars3Icon","Phosphor":"List","Tabler":"IconMenu2","Material Icons":"menu","Radix Icons":"HamburgerMenuIcon"},"a11yNotes":["Icon-only buttons need an aria-label","Expose the open state with aria-expanded","Keep the tap target at least 44px"],"tags":["icon","mobile","menu"]},{"id":"hero-section","name":"Hero section","category":"layout","aliases":["hero","hero banner","intro section"],"looksLike":["big headline and main button at the start of a page","large introduction area above everything else","opening section with a bold message and a picture"],"definition":"A prominent introductory section near the top of a page, usually containing a headline, supporting text, and a main action.","whenToUse":["Introducing a product","Explaining a service on a landing page"],"notConfusedWith":[{"id":"navbar","difference":"Provides navigation links rather than the main introductory message."}],"related":["button","navbar","bento-grid"],"prompts":{"short":"Add a hero section with a clear headline and a prominent action link.","detailed":"Add a responsive hero section with the page heading, brief supporting text, and a descriptive action link. Keep text readable over any imagery, hide decorative visuals from screen readers, and stack content on narrow screens. Give the action visible focus and a 44px target."},"snippets":{"html":"<section aria-labelledby=\"hero-title\">\n  <h1 id=\"hero-title\">Find the right words for your interface</h1>\n  <p>Learn component names and turn your ideas into clear requests.</p>\n  <a href=\"/components/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Explore UI components</a>\n</section>","vue":"<script setup>\nimport { useId } from \"vue\";\n\nconst uid = useId();\n</script>\n\n<template>\n  <section :aria-labelledby=\"uid + '-hero-title'\">\n    <h1 :id=\"uid + '-hero-title'\">Find the right words for your interface</h1>\n    <p>Learn component names and turn your ideas into clear requests.</p>\n    <a href=\"/components/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Explore UI components</a>\n  </section>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{},"a11yNotes":["Use a heading that fits the page hierarchy","Keep text contrast at least 4.5:1","Use descriptive action text and accessible image alternatives"],"tags":["layout"]},{"id":"kebab-menu","name":"Kebab menu","category":"icons-assets","aliases":["vertical ellipsis","three-dot menu","more actions menu"],"looksLike":["three vertical dots that open extra actions","stack of three dots at the end of a row","small dotted control beside an item"],"definition":"A three-vertical-dot control that opens secondary actions for an item, usually in a dropdown menu.","whenToUse":["Secondary actions on a table row","Compact actions on a card"],"notConfusedWith":[{"id":"hamburger-icon","difference":"Three horizontal lines usually open navigation; three vertical dots usually reveal item actions."}],"related":["dropdown-menu","button","data-table"],"prompts":{"short":"Add a kebab menu with a labeled three-dot trigger and keyboard-operable actions.","detailed":"Add a three-vertical-dot button labeled for the item it affects. Open an accessible dropdown menu with 44px action targets, keyboard navigation, and Escape dismissal. Keep the dots decorative, expose expanded state, and return focus to the trigger when the menu closes."},"snippets":{"reactTailwind":"\"use client\";\n// Requires the Base UI variant of shadcn/ui dropdown-menu in the consuming project.\nimport { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem } from \"@/components/ui/dropdown-menu\";\n\nexport function MoreActions({ name, onRename }: { name: string; onRename: () => void }) {\n  return (\n    <DropdownMenu>\n      <DropdownMenuTrigger aria-label={`More actions for ${name}`} className=\"grid min-h-11 min-w-11 place-items-center focus-visible:outline-2 focus-visible:outline-offset-2\">\n        <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n          <circle cx=\"10\" cy=\"4\" r=\"2\" />\n          <circle cx=\"10\" cy=\"10\" r=\"2\" />\n          <circle cx=\"10\" cy=\"16\" r=\"2\" />\n        </svg>\n      </DropdownMenuTrigger>\n      <DropdownMenuContent>\n        <DropdownMenuItem onClick={onRename} className=\"min-h-11\">Rename</DropdownMenuItem>\n      </DropdownMenuContent>\n    </DropdownMenu>\n  );\n}","vue":"<template>\n  <!-- A disclosure of links uses native Tab navigation, not ARIA menu semantics. -->\n  <details>\n    <summary aria-label=\"More actions\">⋮</summary>\n    <nav aria-label=\"More actions\">\n      <a href=\"/projects/edit/\">Edit project</a>\n      <a href=\"/projects/share/\">Share project</a>\n    </nav>\n  </details>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\nsummary { cursor: pointer; min-width: 44px; }\nnav { display: grid; border: 1px solid currentColor; padding: 8px; }\n</style>"},"libraries":{"shadcn/ui":"Dropdown Menu"},"a11yNotes":["Give the icon-only trigger an item-specific accessible name","Use 44px targets, visible focus, and menu keyboard behavior","Hide the dots from screen readers and restore focus on dismissal"],"tags":["icons-assets"]},{"id":"modal","name":"Modal","category":"overlay","aliases":["dialog","dialog box","popup","pop-up","lightbox"],"looksLike":["popup with a dark background behind it","box in the middle of the screen that blocks everything else","confirmation window with Cancel and OK buttons","window that appears on top of the page"],"definition":"A centered window that appears on top of the page and blocks everything behind it until the person responds or dismisses it.","whenToUse":["Confirming a destructive action","Short forms that need full focus","Showing a single important message"],"notConfusedWith":[{"id":"drawer","difference":"Slides in from an edge and usually holds more content."},{"id":"popover","difference":"Small and anchored to a button; the page stays usable."},{"id":"toast","difference":"Appears briefly and doesn't block anything."}],"related":["drawer","popover","toast","bottom-sheet"],"prompts":{"short":"Add a centered modal with title, body, Cancel and Confirm buttons. Trap focus.","detailed":"Add a centered modal (max-width 480px) with a title, body text, and Cancel/Confirm buttons over a dimmed backdrop. Trap focus, close on Esc, lock page scroll while open, and use the dialog role with aria-modal and aria-labelledby."},"snippets":{"html":"<dialog id=\"confirm\">\n  <h2>Delete project?</h2>\n  <p>This can't be undone.</p>\n  <form method=\"dialog\">\n    <button>Cancel</button>\n    <button value=\"confirm\">Delete</button>\n  </form>\n</dialog>\n\n<button onclick=\"document.getElementById('confirm').showModal()\">Delete</button>","reactTailwind":"export function Modal({ open, onClose, title, children }: {\n  open: boolean;\n  onClose: () => void;\n  title: string;\n  children: React.ReactNode;\n}) {\n  if (!open) return null;\n  return (\n    <div className=\"fixed inset-0 grid place-items-center bg-black/50\" onClick={onClose}>\n      <div\n        role=\"dialog\"\n        aria-modal=\"true\"\n        aria-label={title}\n        className=\"w-full max-w-md rounded-xl bg-white p-6\"\n        onClick={(e) => e.stopPropagation()}\n      >\n        <h2 className=\"text-lg font-semibold\">{title}</h2>\n        {children}\n      </div>\n    </div>\n  );\n}","vue":"<script setup>\nimport { useId, ref } from \"vue\";\nconst dialog = ref(null);\nconst trigger = ref(null);\nconst uid = useId();\n</script>\n\n<template>\n  <button ref=\"trigger\" type=\"button\" @click=\"dialog.showModal()\">Open modal</button>\n  <dialog ref=\"dialog\" :aria-labelledby=\"uid + '-title'\" @close=\"trigger?.focus()\">\n    <h2 :id=\"uid + '-title'\">Project details</h2>\n    <p>Review the available options.</p>\n    <a href=\"/guides/\">Browse guides</a>\n    <form method=\"dialog\"><button autofocus>Close</button></form>\n  </dialog>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\ndialog { box-sizing: border-box; max-width: min(100%, 28rem); overflow: auto; background: Canvas; color: CanvasText; }\ndialog::backdrop { background: rgb(0 0 0 / 50%); }\n</style>"},"libraries":{"shadcn/ui":"Dialog (AlertDialog for confirmations)","MUI":"Dialog (Modal is the low-level base)","Chakra UI":"Dialog (v3) / Modal (v2)","Mantine":"Modal","Radix UI":"Dialog"},"a11yNotes":["Trap focus while it is open","Close on Esc","Return focus to the trigger on close","Give it an accessible name (aria-labelledby)"],"tags":["overlay","confirmation","blocking"]},{"id":"navbar","name":"Navbar","category":"navigation","aliases":["top bar","header nav","menu bar","navigation bar","app bar"],"looksLike":["bar across the top of the page with links","logo on the left and menu links on the right","header with a button on the far right"],"definition":"A horizontal bar at the top of the page holding the logo, the main navigation links, and often a call-to-action button.","whenToUse":["Primary site navigation","Marketing and app headers"],"notConfusedWith":[{"id":"drawer","difference":"Slides in on demand; the navbar is always visible."}],"related":["hamburger-icon","drawer"],"prompts":{"short":"Add a sticky top navbar: logo left, links center, CTA right.","detailed":"Add a sticky top navbar with the logo on the left, centered nav links with a clear active state, and a primary CTA button on the right. Collapse to a hamburger menu that opens a drawer below 768px, and use a nav landmark with an aria-label."},"snippets":{"html":"<header>\n  <nav aria-label=\"Main\">\n    <a href=\"/\">Logo</a>\n    <a href=\"/docs\">Docs</a>\n    <a href=\"/pricing\">Pricing</a>\n    <a href=\"/signup\">Sign up</a>\n  </nav>\n</header>","reactTailwind":"<header className=\"sticky top-0 z-40 border-b bg-white\">\n  <nav aria-label=\"Main\" className=\"mx-auto flex h-14 max-w-6xl items-center justify-between px-4\">\n    <a href=\"/\" className=\"font-semibold\">Logo</a>\n    <div className=\"hidden gap-6 md:flex\">\n      <a href=\"/docs\">Docs</a>\n      <a href=\"/pricing\">Pricing</a>\n    </div>\n    <a href=\"/signup\" className=\"rounded-lg bg-black px-4 py-2 text-white\">Sign up</a>\n  </nav>\n</header>","vue":"<template>\n  <header>\n    <nav aria-label=\"Main\">\n      <a href=\"/\">Logo</a>\n      <a href=\"/docs\">Docs</a>\n      <a href=\"/pricing\">Pricing</a>\n      <a href=\"/signup\">Sign up</a>\n    </nav>\n  </header>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Navigation Menu","MUI":"AppBar","Mantine":"AppShell.Header","Bootstrap":"Navbar","Chakra UI":"No built-in navbar (compose with Flex)"},"a11yNotes":["Wrap the links in a nav element with an aria-label","Mark the current page with aria-current","Keep the hamburger button labelled"],"tags":["navigation","header","layout"]},{"id":"pagination","name":"Pagination","category":"navigation","aliases":["page navigation","page numbers"],"looksLike":["numbered links below a list of results","previous and next buttons beside page numbers","row of numbers with the current page highlighted"],"definition":"Controls for moving between pages of a longer list, usually with page numbers and previous or next links.","whenToUse":["Search results split into pages","Long product or article lists"],"notConfusedWith":[{"id":"breadcrumb","difference":"Shows a hierarchy of parent pages rather than positions in a result list."}],"related":["breadcrumb","button"],"prompts":{"short":"Add pagination with page links and a marked current page.","detailed":"Add labeled pagination navigation using real links for result pages. Mark the current link with aria-current=\"page\", label page numbers clearly, and omit unavailable previous or next links. Keep targets at least 44px square and allow wrapping on small screens."},"snippets":{"html":"<nav aria-label=\"Results pages\">\n  <ul style=\"display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0\">\n    <li><a href=\"?page=1\" aria-label=\"Page 1\" style=\"display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px\">1</a></li>\n    <li><a href=\"?page=2\" aria-label=\"Page 2\" aria-current=\"page\" style=\"display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; font-weight:bold\">2</a></li>\n    <li><a href=\"?page=3\" aria-label=\"Page 3\" style=\"display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px\">3</a></li>\n  </ul>\n</nav>","vue":"<template>\n  <nav aria-label=\"Results pages\">\n    <ul style=\"display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0\">\n      <li><a href=\"?page=1\" aria-label=\"Page 1\" style=\"display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px\">1</a></li>\n      <li><a href=\"?page=2\" aria-label=\"Page 2\" aria-current=\"page\" style=\"display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; font-weight:bold\">2</a></li>\n      <li><a href=\"?page=3\" aria-label=\"Page 3\" style=\"display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px\">3</a></li>\n    </ul>\n  </nav>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Pagination"},"a11yNotes":["Label the navigation and each numbered page link","Mark the current page with aria-current=\"page\"","Provide visible focus, 44px targets, and wrapping"],"tags":["navigation"]},{"id":"popover","name":"Popover","category":"overlay","aliases":["floating panel","flyout","info bubble"],"looksLike":["small box that appears next to a button when you click it","floating card with an arrow pointing at its trigger","little panel with no dark background"],"definition":"A small floating panel anchored to the element that opened it. The rest of the page stays usable and there is no dimmed backdrop.","whenToUse":["Extra info or options tied to one button","Quick settings or filters","Mini forms such as a rename field"],"notConfusedWith":[{"id":"modal","difference":"Centered, blocks the page, and has a dimmed backdrop."},{"id":"drawer","difference":"Slides in from a screen edge instead of sitting next to its trigger."}],"related":["modal","drawer","toast"],"prompts":{"short":"Add a popover anchored to this button. Close on outside click and Esc.","detailed":"Add a popover anchored below the trigger button with a small arrow, flipping above when there's no room. Close on outside click or Esc, return focus to the trigger, and set aria-expanded on the button."},"snippets":{"html":"<button popovertarget=\"info\">More info</button>\n<div id=\"info\" popover>Anchored help text goes here.</div>","reactTailwind":"<div className=\"relative inline-block\">\n  <button aria-expanded={open} onClick={() => setOpen(!open)}>\n    More info\n  </button>\n  {open && (\n    <div className=\"absolute left-0 top-full z-10 mt-2 w-64 rounded-lg border bg-white p-4 shadow-lg\">\n      Anchored help text goes here.\n    </div>\n  )}\n</div>","vue":"<script setup>\nimport { useId } from \"vue\";\n\nconst uid = useId();\n</script>\n\n<template>\n  <button type=\"button\" :popovertarget=\"uid + '-info'\">More info</button>\n  <div :id=\"uid + '-info'\" popover>Changes are saved automatically.</div>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Popover","MUI":"Popover (or Popper)","Chakra UI":"Popover","Mantine":"Popover","Radix UI":"Popover"},"a11yNotes":["Set aria-expanded on the trigger","Close on Esc and on outside click","Keep the focus order logical"],"tags":["overlay","anchored","floating"]},{"id":"progress-bar","name":"Progress bar","category":"feedback","aliases":["progress indicator","completion bar"],"looksLike":["bar that fills up as a file uploads","horizontal strip showing how much is finished","loading line with a percentage completed"],"definition":"A bar that shows how much of a task is complete, or indicates ongoing work when the total is unknown.","whenToUse":["File upload progress","Multi-step task completion"],"notConfusedWith":[{"id":"skeleton-loader","difference":"Reserves space for incoming content without measuring completion."}],"related":["skeleton-loader","toast"],"prompts":{"short":"Add a labeled progress bar showing task completion and a visible percentage.","detailed":"Add a native progress element with an accessible label and visible percentage text. Update its value as work completes. Omit value when completion is unknown, and announce major status changes without announcing every percentage update."},"snippets":{"html":"<label for=\"upload-progress\">Upload progress</label>\n<progress id=\"upload-progress\" value=\"60\" max=\"100\" style=\"width:100%\">60%</progress>\n<p>60% uploaded</p>","vue":"<script setup>\nimport { useId } from \"vue\";\n// Update value from your upload progress callback.\ndefineProps({ value: { type: Number, default: 60 } });\nconst uid = useId();\n</script>\n\n<template>\n  <label :for=\"uid + '-progress'\">Upload progress</label>\n  <progress :id=\"uid + '-progress'\" :value=\"value\" max=\"100\">{{ value }}%</progress>\n  <p>{{ value }}% uploaded</p>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\nprogress { width: 100%; }\n</style>"},"libraries":{"shadcn/ui":"Progress"},"a11yNotes":["Give the progress element an accessible label","Expose the value and maximum; omit value for unknown progress","Announce meaningful status changes without excessive live updates"],"tags":["feedback"]},{"id":"radio","name":"Radio","category":"input","aliases":["radio button","radio group","single-choice option"],"looksLike":["round choices where only one can be selected","little circles with a dot in the chosen one","picking one option clears the other circle"],"definition":"A set of mutually exclusive choices: choosing one radio button deselects the others in the same group.","whenToUse":["Choosing one delivery method","Selecting one billing interval"],"notConfusedWith":[{"id":"checkbox","difference":"Allows independent selections; several boxes can be checked at once."}],"related":["checkbox","select","button"],"prompts":{"short":"Add a radio group with labeled choices and one selection at a time.","detailed":"Add native radio inputs sharing a name inside a fieldset with a descriptive legend. Give each option a clickable label at least 44px high. Keep native arrow-key and Space behavior, visible focus, and a clear selected state."},"snippets":{"html":"<fieldset>\n  <legend>Delivery method</legend>\n  <label style=\"display:flex; align-items:center; gap:8px; min-height:44px\">\n    <input type=\"radio\" name=\"delivery\" value=\"standard\" checked>\n    Standard delivery\n  </label>\n  <label style=\"display:flex; align-items:center; gap:8px; min-height:44px\">\n    <input type=\"radio\" name=\"delivery\" value=\"express\">\n    Express delivery\n  </label>\n</fieldset>","vue":"<script setup>\nimport { ref, useId } from \"vue\";\nconst group = useId();\nconst delivery = ref(\"standard\");\n</script>\n\n<template>\n  <fieldset>\n    <legend>Delivery method</legend>\n    <label><input v-model=\"delivery\" type=\"radio\" :name=\"group\" value=\"standard\"> Standard</label>\n    <label><input v-model=\"delivery\" type=\"radio\" :name=\"group\" value=\"express\"> Express</label>\n  </fieldset>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\nlabel { display: flex; align-items: center; gap: 8px; }\n</style>"},"libraries":{"shadcn/ui":"Radio Group"},"a11yNotes":["Group options using fieldset and legend","Use one shared name and a visible label for every radio","Preserve native keyboard behavior and visible focus"],"tags":["input"]},{"id":"select","name":"Select / combobox","category":"input","aliases":["select","combobox","combo box","dropdown field","choice picker","searchable dropdown","searchable select","dropdown with search","autocomplete","typeahead"],"looksLike":["field with a down arrow that opens choices","box where I pick one item from a list","type in a field to narrow the available choices","text field that shows suggestions while I type"],"definition":"A field for choosing an option. A select offers fixed choices; an editable combobox (autocomplete or searchable dropdown) also lets users type to find options and may allow a custom value.","whenToUse":["Choosing a country or category","Searching a long list of options","Autocomplete suggestions while typing in a field"],"notConfusedWith":[{"id":"dropdown-menu","difference":"Runs commands such as Rename; a select or combobox sets a field value."}],"related":["radio","text-input","dropdown-menu"],"prompts":{"short":"Add a labeled select with keyboard-operable options and a visible selected value.","detailed":"Add a native select for a fixed list of choices, with an associated label, visible focus, and a 44px target. For a searchable combobox, use an accessible implementation with a labeled input, expanded state, linked listbox, arrow-key navigation, Enter selection, and Escape dismissal."},"snippets":{"html":"<!-- Fixed-choice select. An editable combobox needs additional keyboard and focus behavior. -->\n<label for=\"category\">Category</label>\n<select id=\"category\" name=\"category\" style=\"min-height:44px; width:100%; box-sizing:border-box\">\n  <option value=\"guides\">Guides</option>\n  <option value=\"examples\">Examples</option>\n  <option value=\"news\">News</option>\n</select>","vue":"<script setup>\nimport { useId, ref } from \"vue\";\nconst category = ref(\"guides\");\nconst uid = useId();\n</script>\n\n<template>\n  <label :for=\"uid + '-category'\">Category</label>\n  <select :id=\"uid + '-category'\" v-model=\"category\" name=\"category\">\n    <option value=\"guides\">Guides</option>\n    <option value=\"examples\">Examples</option>\n    <option value=\"news\">News</option>\n  </select>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Select (fixed choices) / Combobox (separate, searchable)"},"a11yNotes":["Associate a visible label and retain keyboard operation","Use native select for simple fixed choices","For custom comboboxes, expose expanded state and active option; support Escape and Enter"],"tags":["input"]},{"id":"sidebar","name":"Sidebar","category":"navigation","aliases":["side navigation","vertical navigation"],"looksLike":["column of links down the left side","menu that stays beside the main content","vertical list of sections along the edge of a page"],"definition":"A side column that keeps navigation or supporting information beside the main content instead of covering it.","whenToUse":["Persistent dashboard navigation","Documentation section links"],"notConfusedWith":[{"id":"drawer","difference":"Slides over the page and may use a backdrop; a sidebar occupies space beside content."}],"related":["navbar","drawer","accordion"],"prompts":{"short":"Add a sidebar with labeled navigation and a marked current link.","detailed":"Add a sidebar beside the main content using a labeled navigation landmark. Mark the current page link, keep links at least 44px high, and show keyboard focus. Stack the navigation above content on narrow screens so the layout does not overflow."},"snippets":{"html":"<nav aria-label=\"Project navigation\">\n  <ul style=\"list-style:none; padding:0; margin:0\">\n    <li><a href=\"/overview/\" aria-current=\"page\" style=\"display:flex; align-items:center; min-height:44px; font-weight:bold\">Overview</a></li>\n    <li><a href=\"/activity/\" style=\"display:flex; align-items:center; min-height:44px\">Activity</a></li>\n    <li><a href=\"/settings/\" style=\"display:flex; align-items:center; min-height:44px\">Settings</a></li>\n  </ul>\n</nav>\n<!-- Place this navigation beside main content; stack it above on narrow screens. -->","vue":"<template>\n  <nav aria-label=\"Project navigation\">\n    <ul style=\"list-style:none; padding:0; margin:0\">\n      <li><a href=\"/overview/\" aria-current=\"page\" style=\"display:flex; align-items:center; min-height:44px; font-weight:bold\">Overview</a></li>\n      <li><a href=\"/activity/\" style=\"display:flex; align-items:center; min-height:44px\">Activity</a></li>\n      <li><a href=\"/settings/\" style=\"display:flex; align-items:center; min-height:44px\">Settings</a></li>\n    </ul>\n  </nav>\n  <!-- Place this navigation beside main content; stack it above on narrow screens. -->\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Sidebar"},"a11yNotes":["Label navigation landmarks distinctly","Mark the current page and keep keyboard focus visible","Keep DOM reading order logical when the sidebar stacks"],"tags":["navigation"]},{"id":"skeleton-loader","name":"Skeleton loader","category":"feedback","aliases":["skeleton screen","shimmer","placeholder","ghost loading","loading placeholder"],"looksLike":["gray boxes that stand in for content while it loads","shimmering placeholder blocks shaped like the page","fake grey lines where text will appear"],"definition":"Gray placeholder shapes that mimic the layout of content that is still loading, so the page doesn't jump when the real content arrives.","whenToUse":["Lists, cards, and profiles loading from an API","Anywhere a spinner would feel slow or jumpy"],"notConfusedWith":[],"related":[],"prompts":{"short":"Replace the list spinner with skeleton placeholders.","detailed":"Replace the loading spinner with skeleton placeholders that match the final layout: a circle avatar and two text lines per row, a subtle shimmer animation, and no layout shift when real content loads. Respect prefers-reduced-motion."},"snippets":{"reactTailwind":"<div className=\"flex items-center gap-3\" aria-busy=\"true\">\n  <div className=\"h-10 w-10 animate-pulse rounded-full bg-gray-200\" />\n  <div className=\"space-y-2\">\n    <div className=\"h-3 w-40 animate-pulse rounded bg-gray-200\" />\n    <div className=\"h-3 w-24 animate-pulse rounded bg-gray-200\" />\n  </div>\n</div>","vue":"<template>\n  <section aria-busy=\"true\" aria-label=\"Loading articles\">\n    <div v-for=\"n in 3\" :key=\"n\" class=\"placeholder\" aria-hidden=\"true\"></div>\n  </section>\n  <p role=\"status\">Loading articles…</p>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n.placeholder { height: 80px; margin-block: 12px; background: currentColor; opacity: 0.15; border-radius: 8px; }\n</style>"},"libraries":{"shadcn/ui":"Skeleton","MUI":"Skeleton","Chakra UI":"Skeleton","Mantine":"Skeleton"},"a11yNotes":["Mark the loading region with aria-busy","Respect prefers-reduced-motion for the shimmer","Hide purely decorative placeholders from screen readers"],"tags":["feedback","loading","performance"]},{"id":"slider","name":"Slider","category":"input","aliases":["range input","range slider"],"looksLike":["line with a knob I drag to change a value","volume control with a handle on a track","drag a dot between minimum and maximum"],"definition":"A control with a movable handle for choosing a value within a range, such as volume or brightness.","whenToUse":["Approximate volume or brightness settings","Choosing a value within fixed limits"],"notConfusedWith":[{"id":"progress-bar","difference":"Displays completion; it does not let the user adjust a value."}],"related":["progress-bar","text-input","radio"],"prompts":{"short":"Add a labeled slider with keyboard adjustment and a visible current value.","detailed":"Add a native range input with a visible label, minimum, maximum, and step. Show its current value and units, preserve arrow-key controls and visible focus, and give the input a 44px-high interaction area. Offer a number input when exact entry matters."},"snippets":{"html":"<label for=\"volume\">Volume</label>\n<input id=\"volume\" name=\"volume\" type=\"range\" min=\"0\" max=\"100\" step=\"1\" value=\"50\" aria-describedby=\"volume-unit\" style=\"min-height:44px; width:100%; margin:0\" oninput=\"document.getElementById('volume-value').textContent = this.value\">\n<output id=\"volume-value\" for=\"volume\">50</output>\n<span id=\"volume-unit\">percent</span>","vue":"<script setup>\nimport { useId, ref } from \"vue\";\nconst volume = ref(50);\nconst uid = useId();\n</script>\n\n<template>\n  <label :for=\"uid + '-volume'\">Volume</label>\n  <input :id=\"uid + '-volume'\" v-model.number=\"volume\" type=\"range\" min=\"0\" max=\"100\" step=\"1\" :aria-describedby=\"uid + '-unit'\">\n  <output :for=\"uid + '-volume'\">{{ volume }}</output><span :id=\"uid + '-unit'\"> percent</span>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Slider"},"a11yNotes":["Label the range and communicate units","Preserve keyboard adjustment and visible focus","Provide precise entry when a slider alone is insufficient"],"tags":["input"]},{"id":"spinner","name":"Spinner","category":"feedback","aliases":["loading spinner","busy indicator","loading wheel"],"looksLike":["spinning circle while I wait","rotating ring while something loads","small wheel turning beside loading text"],"definition":"A looping loading indicator that shows work is ongoing without measuring how much has finished.","whenToUse":["Brief waits for an action","Loading when the remaining time is unknown"],"notConfusedWith":[{"id":"progress-bar","difference":"Can show measurable completion; a spinner gives no percentage."}],"related":["progress-bar","skeleton-loader","button"],"prompts":{"short":"Add a spinner with loading text and respect reduced-motion preferences.","detailed":"Show a spinner and meaningful status text while work is pending. Hide the decorative ring from assistive technology, announce the status politely, and disable its rotation when reduced motion is requested. Remove it when work completes and communicate the result."},"snippets":{"reactTailwind":"// Show while loading; replace the status text when the task finishes.\nexport function LoadingStatus() {\n  return (\n    <div role=\"status\" className=\"flex items-center gap-2\">\n      <span aria-hidden=\"true\" className=\"size-5 shrink-0 rounded-full border-2 border-current border-r-transparent motion-safe:animate-spin\" />\n      <span>Loading results...</span>\n    </div>\n  );\n}","vue":"<template>\n  <p role=\"status\"><span class=\"spinner\" aria-hidden=\"true\"></span> Loading…</p>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }\n@keyframes spin { to { transform: rotate(360deg); } }\n@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }\n</style>"},"libraries":{"shadcn/ui":"Spinner"},"a11yNotes":["Include meaningful loading text in a polite status region","Hide decorative motion from screen readers","Respect reduced motion and communicate completion"],"tags":["feedback"]},{"id":"stepper","name":"Stepper","category":"navigation","aliases":["step indicator","wizard steps","form steps"],"looksLike":["numbered circles connected by a line","steps showing where I am in a signup process","row of stages with the current stage highlighted"],"definition":"An ordered sequence showing progress through a multi-step task, with the current step and often completed and upcoming steps.","whenToUse":["Multi-step forms","Checkout stages"],"notConfusedWith":[{"id":"progress-bar","difference":"Shows an amount completed rather than named stages in a workflow."}],"related":["progress-bar","tabs","button"],"prompts":{"short":"Add a stepper with named stages and a clearly marked current step.","detailed":"Add an ordered list of task stages with aria-current=\"step\" on the active stage. Include visible text for completed, current, and upcoming states. Use links only for stages users can revisit, keep reading order logical, and let the list wrap or stack on narrow screens."},"snippets":{"html":"<section aria-labelledby=\"steps-title\">\n  <h2 id=\"steps-title\">Checkout progress</h2>\n  <ol>\n    <li>Contact details — completed</li>\n    <li aria-current=\"step\">Delivery — current step</li>\n    <li>Payment — upcoming</li>\n  </ol>\n</section>","vue":"<script setup>\nimport { useId } from \"vue\";\n\nconst uid = useId();\n</script>\n\n<template>\n  <section :aria-labelledby=\"uid + '-steps-title'\">\n    <h2 :id=\"uid + '-steps-title'\">Checkout progress</h2>\n    <ol>\n      <li>Contact details — completed</li>\n      <li aria-current=\"step\">Delivery — current step</li>\n      <li>Payment — upcoming</li>\n    </ol>\n  </section>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{},"a11yNotes":["Mark the active stage with aria-current=\"step\"","Use text as well as color for stage status","When advancing a form, move focus to its new heading or first relevant field"],"tags":["navigation"]},{"id":"sticky-header","name":"Sticky header","category":"navigation","aliases":["sticky navigation","pinned header"],"looksLike":["top strip that stays visible while I scroll","page heading stuck to the top as content moves","navigation that follows me down the page"],"definition":"A header that stays at the top of its scroll container after reaching a specified position while the page continues scrolling beneath it.","whenToUse":["Keeping navigation available on long pages","Retaining important page actions during scrolling"],"notConfusedWith":[{"id":"navbar","difference":"Describes a navigation component; it may scroll away or be placed inside a sticky header."}],"related":["navbar","hero-section","sidebar"],"prompts":{"short":"Add a sticky header that stays visible on scroll without hiding focused content.","detailed":"Add a compact header using position: sticky and top: 0, with an opaque background and suitable stacking order. Keep its links keyboard accessible with 44px targets. Account for its height with scroll padding or target scroll margins so anchor destinations and focused controls remain visible."},"snippets":{"html":"<!-- Add this header near the start of body, outside a short or overflow-clipped ancestor. -->\n<header style=\"position:sticky; top:0; z-index:10; background:Canvas; color:CanvasText\">\n  <nav aria-label=\"Primary\" style=\"display:flex; flex-wrap:wrap; gap:16px\">\n    <a href=\"/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Home</a>\n    <a href=\"/guides/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Guides</a>\n  </nav>\n</header>\n<!-- Set page scroll-padding-top to the rendered header height, including when links wrap. -->","vue":"<template>\n  <!-- Add this header near the start of body, outside a short or overflow-clipped ancestor. -->\n  <header style=\"position:sticky; top:0; z-index:10; background:Canvas; color:CanvasText\">\n    <nav aria-label=\"Primary\" style=\"display:flex; flex-wrap:wrap; gap:16px\">\n      <a href=\"/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Home</a>\n      <a href=\"/guides/\" style=\"display:inline-flex; align-items:center; min-height:44px\">Guides</a>\n    </nav>\n  </header>\n  <!-- Set page scroll-padding-top to the rendered header height, including when links wrap. -->\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{},"a11yNotes":["Do not obscure keyboard focus or anchor destinations","Keep navigation targets at least 44px high","Avoid large sticky regions that consume the screen when zoomed"],"tags":["navigation"]},{"id":"tabs","name":"Tabs","category":"navigation","aliases":["tabbed interface","tab strip"],"looksLike":["row of labels that switch the content below","one highlighted label above a changing panel","click a heading to swap between views"],"definition":"A row of controls that switches between related panels, showing one panel at a time without leaving the page.","whenToUse":["Related settings sections","Different views of the same information"],"notConfusedWith":[{"id":"accordion","difference":"Expands sections in place and can show several sections at once."}],"related":["accordion","navbar"],"prompts":{"short":"Add tabs that show one panel at a time and support arrow-key navigation.","detailed":"Add labeled tabs with one visible panel. Support arrow keys, Home and End, expose the selected tab, connect each tab to its panel, and keep a visible focus ring. Use 44px targets and allow the row to wrap on narrow screens."},"snippets":{"reactTailwind":"\"use client\";\n// Requires the shadcn/ui tabs component in the consuming project.\nimport { Tabs, TabsList, TabsTrigger, TabsContent } from \"@/components/ui/tabs\";\n\nexport function ProjectTabs() {\n  return (\n    <Tabs defaultValue=\"summary\">\n      <TabsList aria-label=\"Project views\" className=\"h-auto flex-wrap\">\n        <TabsTrigger value=\"summary\" className=\"min-h-11 min-w-11\">Summary</TabsTrigger>\n        <TabsTrigger value=\"activity\" className=\"min-h-11 min-w-11\">Activity</TabsTrigger>\n      </TabsList>\n      <TabsContent value=\"summary\">Project summary</TabsContent>\n      <TabsContent value=\"activity\">Recent activity</TabsContent>\n    </Tabs>\n  );\n}","vue":"<script setup>\nimport { ref, useId, nextTick } from \"vue\";\nconst uid = useId();\nconst active = ref(0);\nconst tabs = [{ title: \"Overview\", text: \"Project summary.\" }, { title: \"Activity\", text: \"Recent changes.\" }];\nasync function move(event, index) {\n  const next = { ArrowRight: (index + 1) % tabs.length, ArrowLeft: (index + tabs.length - 1) % tabs.length, Home: 0, End: tabs.length - 1 }[event.key];\n  if (next === undefined) return;\n  event.preventDefault();\n  const tablist = event.currentTarget.parentElement;\n  active.value = next;\n  await nextTick();\n  tablist.querySelectorAll('[role=\"tab\"]')[next].focus();\n}\n</script>\n\n<template>\n  <div role=\"tablist\" aria-label=\"Project information\">\n    <button v-for=\"(tab, i) in tabs\" :id=\"`${uid}-tab-${i}`\" :key=\"tab.title\" type=\"button\" role=\"tab\"\n      :aria-selected=\"active === i\" :aria-controls=\"`${uid}-panel-${i}`\" :tabindex=\"active === i ? 0 : -1\"\n      @click=\"active = i\" @keydown=\"move($event, i)\">{{ tab.title }}</button>\n  </div>\n  <section v-for=\"(tab, i) in tabs\" :id=\"`${uid}-panel-${i}`\" :key=\"tab.title\" v-show=\"active === i\"\n    role=\"tabpanel\" :aria-labelledby=\"`${uid}-tab-${i}`\" tabindex=\"0\"><p>{{ tab.text }}</p></section>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n[role=\"tab\"][aria-selected=\"true\"] { font-weight: bold; text-decoration: underline; }\n</style>"},"libraries":{"shadcn/ui":"Tabs"},"a11yNotes":["Label the tab list and associate tabs with panels","Support arrow keys, Home and End","Expose selected state and keep keyboard focus visible"],"tags":["navigation"]},{"id":"text-input","name":"Text input","category":"input","aliases":["text field","textbox","single-line input"],"looksLike":["empty box where I type my name","one line field with a label above it","rectangle with a blinking cursor for typing"],"definition":"A single-line field for entering or editing text, such as a name or email address.","whenToUse":["Names and contact details","Short search queries"],"notConfusedWith":[{"id":"checkbox","difference":"Records a checked choice rather than typed text."}],"related":["button","checkbox"],"prompts":{"short":"Add a text input with a visible label and associated help text.","detailed":"Add a single-line text input with an explicitly associated label, appropriate autocomplete, and help text linked with aria-describedby. Keep the field at least 44px high, responsive, and visibly focused. Associate validation errors and set aria-invalid only when invalid."},"snippets":{"html":"<label for=\"full-name\">Full name</label>\n<input id=\"full-name\" name=\"name\" type=\"text\" autocomplete=\"name\" aria-describedby=\"name-help\" style=\"min-height:44px; width:100%; box-sizing:border-box\">\n<p id=\"name-help\">Enter your name as you would like it displayed.</p>","vue":"<script setup>\nimport { useId, ref } from \"vue\";\nconst name = ref(\"\");\nconst uid = useId();\n</script>\n\n<template>\n  <label :for=\"uid + '-name'\">Full name</label>\n  <input :id=\"uid + '-name'\" v-model=\"name\" name=\"name\" autocomplete=\"name\" :aria-describedby=\"uid + '-help'\">\n  <p :id=\"uid + '-help'\">Enter your name as you would like it displayed.</p>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Input"},"a11yNotes":["Associate a visible label; do not rely on placeholder text","Link help and errors with aria-describedby","Use appropriate autocomplete and visible focus"],"tags":["input"]},{"id":"toast","name":"Toast","category":"feedback","aliases":["snackbar","notification pop","toast notification","flash message"],"looksLike":["small message that pops up in the corner and disappears","little black bar at the bottom saying saved","notification that fades away by itself"],"definition":"A brief message that appears over the page, usually in a corner, and dismisses itself after a few seconds. It never blocks the page.","whenToUse":["Confirming a save or a copy","Undo prompts after a delete","Non-critical errors"],"notConfusedWith":[{"id":"modal","difference":"Blocks the page and needs a response."},{"id":"popover","difference":"Anchored to a trigger instead of a screen corner."}],"related":["modal","popover"],"prompts":{"short":"Show a toast bottom-right after save. Auto-dismiss in 3s.","detailed":"Add a toast system: bottom-right stack, auto-dismiss after 3s, pause on hover, with success and error variants and an optional Undo action. Render it in a polite live region so screen readers announce it."},"snippets":{"html":"<div role=\"status\" aria-live=\"polite\" class=\"toast\">Saved</div>","reactTailwind":"<div\n  role=\"status\"\n  aria-live=\"polite\"\n  className=\"fixed bottom-4 right-4 rounded-lg bg-gray-900 px-4 py-3 text-sm text-white shadow-lg\"\n>\n  Saved\n</div>","vue":"<script setup>\nimport { ref } from \"vue\";\nconst message = ref(\"\");\n</script>\n\n<template>\n  <button type=\"button\" @click=\"message = 'Example notification: changes saved.'\">Show example toast</button>\n  <!-- Keep the live region mounted before changing its content. -->\n  <div role=\"status\">{{ message }}</div>\n  <button v-if=\"message\" type=\"button\" @click=\"message = ''\">Dismiss notification</button>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Sonner (the older Toast is deprecated)","MUI":"Snackbar","Chakra UI":"toaster (v3) / useToast (v2)","Mantine":"Notifications","Radix UI":"Toast"},"a11yNotes":["Use a polite live region (role=status)","Don't auto-dismiss messages people need time to read","Pause the timer on hover and focus"],"tags":["feedback","notification","temporary"]},{"id":"toggle-switch","name":"Toggle switch","category":"input","aliases":["switch","toggle","on/off switch"],"looksLike":["pill that slides left and right to turn something on or off","on off switch","little round knob on a track"],"definition":"A two-state control that turns a setting on or off immediately, like a physical light switch.","whenToUse":["Settings that apply instantly","Enabling or disabling a feature"],"notConfusedWith":[],"related":[],"prompts":{"short":"Add an on/off toggle switch with a label. Apply the change instantly.","detailed":"Add an accessible toggle switch (switch role, aria-checked) with a visible label, a sliding knob, and the on state in the accent color. It applies immediately, so don't add a Save button. Support Space to toggle and a visible focus ring."},"snippets":{"html":"<button role=\"switch\" aria-checked=\"false\" aria-label=\"Email notifications\">\n  <span class=\"knob\"></span>\n</button>","reactTailwind":"<button\n  role=\"switch\"\n  aria-checked={on}\n  aria-label=\"Email notifications\"\n  onClick={() => setOn(!on)}\n  className={`h-6 w-11 rounded-full p-0.5 transition ${on ? \"bg-indigo-600\" : \"bg-gray-300\"}`}\n>\n  <span className={`block h-5 w-5 rounded-full bg-white transition ${on ? \"translate-x-5\" : \"\"}`} />\n</button>","vue":"<script setup>\nimport { ref } from \"vue\";\nconst enabled = ref(false);\n</script>\n\n<template>\n  <button type=\"button\" role=\"switch\" :aria-checked=\"enabled\" @click=\"enabled = !enabled\">\n    Email notifications: {{ enabled ? 'On' : 'Off' }}\n  </button>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n</style>"},"libraries":{"shadcn/ui":"Switch","MUI":"Switch","Chakra UI":"Switch","Mantine":"Switch","Radix UI":"Switch"},"a11yNotes":["Use the switch role with aria-checked","Support Space (and Enter) to toggle","Don't rely on color alone to show the state"],"tags":["input","settings","boolean"]},{"id":"tooltip","name":"Tooltip","category":"overlay","aliases":["hover hint","help tip"],"looksLike":["small text label that appears when I hover","tiny explanation beside an icon","hint that appears when a button gets focus"],"definition":"A short, non-interactive hint shown beside a control on hover or keyboard focus.","whenToUse":["Explaining an unfamiliar action","Providing optional context for a control"],"notConfusedWith":[{"id":"popover","difference":"Can contain richer content and interactive controls; a tooltip contains only a short hint."}],"related":["popover","button"],"prompts":{"short":"Add a tooltip on hover and keyboard focus. Dismiss it with Escape.","detailed":"Add a short tooltip that opens on hover and focus, remains available while hovered, and closes on Escape. Associate it with its trigger, keep focus on the trigger, and include no interactive content. Keep essential instructions visible outside the tooltip."},"snippets":{"reactTailwind":"\"use client\";\n// Requires the shadcn/ui tooltip component in the consuming project.\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from \"@/components/ui/tooltip\";\n\nexport function SaveHint({ onSave }: { onSave: () => void }) {\n  return (\n    <TooltipProvider>\n      <Tooltip>\n        <TooltipTrigger type=\"button\" onClick={onSave} className=\"min-h-11 min-w-11 px-4 focus-visible:outline-2 focus-visible:outline-offset-2\">Save</TooltipTrigger>\n        <TooltipContent>Store your changes for later.</TooltipContent>\n      </Tooltip>\n    </TooltipProvider>\n  );\n}","vue":"<script setup>\nimport { useId, ref, onMounted, onUnmounted } from \"vue\";\nconst hovered = ref(false);\nconst focused = ref(false);\nconst dismissed = ref(false);\nfunction dismiss(event) { if (event.key === \"Escape\") dismissed.value = true; }\nonMounted(() => window.addEventListener(\"keydown\", dismiss));\nonUnmounted(() => window.removeEventListener(\"keydown\", dismiss));\nconst uid = useId();\n</script>\n\n<template>\n  <span class=\"wrapper\" @mouseenter=\"hovered = true\" @mouseleave=\"hovered = false; dismissed = false\">\n    <button type=\"button\" :aria-describedby=\"uid + '-tip'\" @focus=\"focused = true; dismissed = false\" @blur=\"focused = false; dismissed = false\">Storage help</button>\n    <span :id=\"uid + '-tip'\" role=\"tooltip\" v-show=\"(hovered || focused) && !dismissed\">Your plan includes 10 GB of storage.</span>\n  </span>\n</template>\n\n<style scoped>\nbutton, input, select, summary { min-height: 44px; }\nbutton { min-width: 44px; }\nbutton, a { touch-action: manipulation; }\na { display: inline-flex; align-items: center; min-height: 44px; }\n:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }\ninput, select { max-width: 100%; box-sizing: border-box; }\n.wrapper { position: relative; display: inline-block; }\n[role=\"tooltip\"] { position: absolute; top: 100%; left: 0; z-index: 1; width: min(16rem, 80vw); padding: 8px; box-sizing: border-box; background: Canvas; color: CanvasText; border: 1px solid currentColor; }\n</style>"},"libraries":{"shadcn/ui":"Tooltip"},"a11yNotes":["Show on keyboard focus as well as hover","Allow Escape dismissal and hovering over the hint","Keep essential information visible and omit interactive content"],"tags":["overlay"]}],"websiteTypeCount":20,"websiteTypes":[{"id":"blog","name":"Blog","aliases":["weblog","personal journal site","article blog"],"looksLike":["a site with posts about one topic","a personal website with dated articles","a writer sharing stories and updates"],"definition":"A site built around posts, usually organized by topic and publication date, where a person or team shares ideas, stories, tutorials, or updates.","goal":"Help readers discover and read useful posts.","audience":"Readers interested in a writer or subject","sections":[{"name":"Introduction and topics","purpose":"Explain the subject and help readers choose a topic.","componentIds":["navbar","hero-section"]},{"name":"Post index","purpose":"Show titles, summaries, authors, and publication dates.","componentIds":["card","pagination"]},{"name":"Article","purpose":"Present a readable story with clear structure and attribution.","componentIds":["breadcrumb","avatar"]},{"name":"Continue reading","purpose":"Suggest relevant posts and an optional subscription.","componentIds":["card","text-input","button","footer"]}],"mustHave":["Readable text and descriptive headings","Author and publication information","Useful topic navigation"],"avoid":["Autoplay media that interrupts reading","Subscription prompts that hide the article"],"examples":["A gardening journal","A home cooking tutorial blog"],"related":["news","documentation"],"prompts":{"short":"Build a blog with topic navigation, a post index, readable articles, and related posts.","detailed":"Build a blog website for readers interested in a writer or subject. Help readers discover and read useful posts. Include introduction and topics, post index, article, continue reading. Use responsive layouts, clear labels, keyboard access, and visible focus. Readable text and descriptive headings."},"tags":["publishing","articles","writing"]},{"id":"booking","name":"Booking","aliases":["reservation website","appointment site","booking website"],"looksLike":["a website where I choose a time and reserve it","a calendar of available appointments","a page for booking a service on a date"],"definition":"A website that lets visitors choose a service, date, or time, review availability and terms, and make a reservation with a clear confirmation.","goal":"Help visitors reserve an available service or time slot.","audience":"People arranging an appointment or reservation","sections":[{"name":"Choose a service","purpose":"Explain the options, duration, and price.","componentIds":["card","select"]},{"name":"Choose availability","purpose":"Show usable dates, times, and time zones.","componentIds":["date-picker","radio"]},{"name":"Review and reserve","purpose":"Collect necessary details and show terms before submission.","componentIds":["stepper","text-input","checkbox","button"]},{"name":"Confirmation and changes","purpose":"Provide a reference and a way to change or cancel.","componentIds":["alert","card","footer"]}],"mustHave":["Explicit time zone and availability","Clear cancellation and pricing terms","A confirmation and change route"],"avoid":["Unavailable slots that look selectable","Asking for unnecessary personal information"],"examples":["A tutoring appointment site","A studio room reservation site"],"related":["event","restaurant","e-commerce"],"prompts":{"short":"Build a booking site with service selection, available times, clear terms, and reservation confirmation.","detailed":"Build a booking website for people arranging an appointment or reservation. Help visitors reserve an available service or time slot. Include choose a service, choose availability, review and reserve, confirmation and changes. Use responsive layouts, clear labels, keyboard access, and visible focus. Explicit time zone and availability."},"tags":["business","appointments","reservations"]},{"id":"dashboard-admin","name":"Dashboard / admin","aliases":["admin dashboard","admin panel website","management portal"],"looksLike":["a website for managing users and records","a private screen with metrics tables and settings","an internal tool for updating business data"],"definition":"An application interface for monitoring information and managing records, users, or settings. It prioritizes frequent tasks and accurate state over promotional storytelling.","goal":"Help authorized users monitor status and complete management tasks.","audience":"Staff and account administrators","sections":[{"name":"Workspace navigation","purpose":"Make sections, account context, and search easy to find.","componentIds":["sidebar","navbar","command-palette"]},{"name":"Overview","purpose":"Summarize the current status and important exceptions.","componentIds":["card","alert"]},{"name":"Records and actions","purpose":"Let users find records and act on the right selection.","componentIds":["data-table","pagination","checkbox","dropdown-menu"]},{"name":"Edit and feedback","purpose":"Explain validation, confirm risky actions, and report outcomes.","componentIds":["text-input","select","modal","toast"]}],"mustHave":["Clear loading empty and error states","Permission-aware actions","Confirmation for destructive changes"],"avoid":["Decorative metrics without context","Destructive actions without recovery"],"examples":["An inventory management portal","A volunteer administration tool"],"related":["saas-marketing","membership","directory"],"prompts":{"short":"Build an admin dashboard with navigation, status summaries, searchable records, and safe editing.","detailed":"Build a dashboard / admin website for staff and account administrators. Help authorized users monitor status and complete management tasks. Include workspace navigation, overview, records and actions, edit and feedback. Use responsive layouts, clear labels, keyboard access, and visible focus. Clear loading empty and error states."},"tags":["tools","management","data"]},{"id":"directory","name":"Directory","aliases":["listing directory","resource directory","business directory"],"looksLike":["a list of places or services I can filter","a website collecting useful resources by category","a searchable catalogue of organizations"],"definition":"A website that organizes many listings, such as services, places, or resources, so people can search, filter, compare, and open a useful listing.","goal":"Help visitors find a relevant listing and its next action.","audience":"People comparing resources or providers","sections":[{"name":"Search and filters","purpose":"Let visitors narrow listings by useful criteria.","componentIds":["text-input","select","checkbox"]},{"name":"Listings","purpose":"Present consistent facts for quick comparison.","componentIds":["card","badge","pagination"]},{"name":"Listing details","purpose":"Explain the offering, location, and contact options.","componentIds":["breadcrumb","tabs","button"]},{"name":"Submit and maintain","purpose":"Let owners suggest updates and explain listing standards.","componentIds":["text-input","file-upload","footer"]}],"mustHave":["Consistent listing information","Useful filters and a helpful empty state","A clear correction or reporting route"],"avoid":["Undisclosed sponsored ranking","Dead listings without maintenance"],"examples":["A local repair service directory","A collection of learning resources"],"related":["e-commerce","job-board","real-estate"],"prompts":{"short":"Build a directory with searchable listings, useful filters, consistent details, and contact links.","detailed":"Build a directory website for people comparing resources or providers. Help visitors find a relevant listing and its next action. Include search and filters, listings, listing details, submit and maintain. Use responsive layouts, clear labels, keyboard access, and visible focus. Consistent listing information."},"tags":["tools","discovery","listings"]},{"id":"documentation","name":"Documentation","aliases":["docs website","documentation site","developer docs"],"looksLike":["a site with guides reference pages and a sidebar","instructions for using a product or tool","a searchable manual with step by step examples"],"definition":"A website that helps people learn and use a product, service, or system through guides, reference material, examples, and searchable navigation.","goal":"Help readers find reliable instructions and complete a task.","audience":"New and experienced users seeking guidance","sections":[{"name":"Start here","purpose":"Explain the scope and offer a useful first task.","componentIds":["hero-section","button"]},{"name":"Guide navigation","purpose":"Organize tasks and reference material into predictable groups.","componentIds":["sidebar","breadcrumb","text-input"]},{"name":"Instructions and examples","purpose":"Present clear steps, prerequisites, and copyable examples.","componentIds":["stepper","tabs","alert"]},{"name":"Next steps and feedback","purpose":"Link related guidance and offer a way to report problems.","componentIds":["card","button","footer"]}],"mustHave":["Clear prerequisites and current version information","Descriptive headings and searchable titles","Working examples and related links"],"avoid":["Outdated instructions without a warning","Navigation labels that assume expert knowledge"],"examples":["A public API manual","A community tool user guide"],"related":["educational","saas-marketing","blog"],"prompts":{"short":"Build a documentation site with search, guide navigation, clear steps, examples, and related pages.","detailed":"Build a documentation website for new and experienced users seeking guidance. Help readers find reliable instructions and complete a task. Include start here, guide navigation, instructions and examples, next steps and feedback. Use responsive layouts, clear labels, keyboard access, and visible focus. Clear prerequisites and current version information."},"tags":["publishing","guides","reference"]},{"id":"e-commerce","name":"E-commerce","aliases":["online store","web shop","shopping website"],"looksLike":["page with products and cart","a website where I can buy things","a shop with prices baskets and checkout"],"definition":"A website that lets people browse products, compare options, add items to a cart, and complete a purchase, with clear information about delivery and returns.","goal":"Help shoppers find suitable products and buy with confidence.","audience":"People researching and buying products","sections":[{"name":"Shop navigation","purpose":"Help shoppers browse and narrow the product range.","componentIds":["navbar","text-input","select"]},{"name":"Product collection","purpose":"Show useful images, prices, and availability.","componentIds":["card","badge","pagination"]},{"name":"Product details","purpose":"Explain variants, specifications, and delivery.","componentIds":["carousel","radio","accordion","button"]},{"name":"Cart and checkout","purpose":"Let shoppers review quantities and the complete cost before payment.","componentIds":["drawer","data-table","text-input","stepper"]},{"name":"Support and policies","purpose":"Explain returns, delivery, and how to contact support.","componentIds":["footer","accordion"]}],"mustHave":["Transparent total costs before payment","Clear availability and delivery information","Recoverable checkout errors"],"avoid":["Hidden fees","Fake stock urgency"],"examples":["A handmade stationery shop","A store selling bicycle parts"],"related":["directory","booking"],"prompts":{"short":"Build an online store with product browsing, clear prices, a cart, and accessible checkout.","detailed":"Build a e-commerce website for people researching and buying products. Help shoppers find suitable products and buy with confidence. Include shop navigation, product collection, product details, cart and checkout, support and policies. Use responsive layouts, clear labels, keyboard access, and visible focus. Transparent total costs before payment."},"tags":["business","shopping","products"]},{"id":"educational","name":"Educational","aliases":["learning website","course website","education platform"],"looksLike":["a site with lessons and courses to study","a website showing learning modules and progress","an online place to work through a course"],"definition":"A website that organizes learning material into courses, lessons, or guided paths and helps learners understand prerequisites, track progress, and continue studying.","goal":"Help learners choose suitable material and progress through it.","audience":"People learning a subject or skill","sections":[{"name":"Course discovery","purpose":"Explain outcomes, level, and prerequisites.","componentIds":["card","select"]},{"name":"Learning path","purpose":"Show lessons in an understandable order.","componentIds":["sidebar","accordion","stepper"]},{"name":"Lesson workspace","purpose":"Present instructions, examples, and practice clearly.","componentIds":["tabs","alert","button"]},{"name":"Progress and next steps","purpose":"Show completion and a clear route to continue.","componentIds":["progress-bar","card"]}],"mustHave":["Clear outcomes and prerequisites","Accessible alternatives for media","Progress that does not rely on color alone"],"avoid":["Unexplained locked lessons","Autoplay lessons without controls"],"examples":["A language practice course","A free introductory coding curriculum"],"related":["documentation","membership"],"prompts":{"short":"Build a learning site with course discovery, ordered lessons, accessible material, and progress indicators.","detailed":"Build a educational website for people learning a subject or skill. Help learners choose suitable material and progress through it. Include course discovery, learning path, lesson workspace, progress and next steps. Use responsive layouts, clear labels, keyboard access, and visible focus. Clear outcomes and prerequisites."},"tags":["publishing","learning","courses"]},{"id":"event","name":"Event","aliases":["event website","conference website","festival website"],"looksLike":["a site with an event schedule speakers and tickets","a page telling me when and where a gathering happens","a website for registering for a conference"],"definition":"A website for a particular gathering that explains what will happen, when and where it takes place, and how visitors can attend or register.","goal":"Help prospective attendees plan and register for an event.","audience":"People considering or attending a gathering","sections":[{"name":"Event essentials","purpose":"Show the purpose, date, location, and registration action.","componentIds":["hero-section","badge","button"]},{"name":"Schedule and people","purpose":"Present sessions, performers, or speakers with clear times.","componentIds":["tabs","card","avatar"]},{"name":"Tickets and access","purpose":"Explain ticket options, accessibility, and attendance requirements.","componentIds":["card","accordion","button"]},{"name":"Travel and updates","purpose":"Provide venue details, changes, and organizer contact information.","componentIds":["alert","footer"]}],"mustHave":["Unambiguous date time zone and location","Transparent ticket and refund terms","Accessibility and organizer contact information"],"avoid":["Hiding venue or schedule changes","Countdowns that replace essential information"],"examples":["A local makers festival","A professional training conference"],"related":["booking","landing-page","nonprofit-church"],"prompts":{"short":"Build an event site with dates, venue details, a schedule, ticket options, and a registration action.","detailed":"Build a event website for people considering or attending a gathering. Help prospective attendees plan and register for an event. Include event essentials, schedule and people, tickets and access, travel and updates. Use responsive layouts, clear labels, keyboard access, and visible focus. Unambiguous date time zone and location."},"tags":["business","gatherings","registration"]},{"id":"forum","name":"Forum","aliases":["discussion forum","message board","discussion board website"],"looksLike":["a website with topics and replies from members","people asking questions in discussion threads","a board of conversations grouped by category"],"definition":"A website for structured discussions, organized into topics and threads with replies, where people can ask questions, share knowledge, and return to ongoing conversations.","goal":"Help members find and participate in useful discussions.","audience":"People discussing a shared subject or seeking help","sections":[{"name":"Categories and search","purpose":"Help readers find the right area before starting a topic.","componentIds":["navbar","text-input","card"]},{"name":"Topic list","purpose":"Show titles, activity, and readable status indicators.","componentIds":["data-table","badge","pagination"]},{"name":"Discussion thread","purpose":"Show authors, replies, and navigation through the discussion.","componentIds":["avatar","breadcrumb","pagination"]},{"name":"Post and moderate","purpose":"Make replying, reporting, and community rules clear.","componentIds":["text-input","button","dropdown-menu","alert"]}],"mustHave":["Clear community rules","Readable reply order and authorship","Search and moderation tools"],"avoid":["Duplicate topics without discovery tools","Anonymous destructive moderation without explanation"],"examples":["A bicycle repair discussion board","A support community for learners"],"related":["social-network","documentation"],"prompts":{"short":"Build a forum with searchable categories, topic lists, readable threads, replies, and moderation tools.","detailed":"Build a forum website for people discussing a shared subject or seeking help. Help members find and participate in useful discussions. Include categories and search, topic list, discussion thread, post and moderate. Use responsive layouts, clear labels, keyboard access, and visible focus. Clear community rules."},"tags":["community","discussion","support"]},{"id":"job-board","name":"Job board","aliases":["jobs website","vacancy board","employment listings site"],"looksLike":["a site with job openings and application links","a website to filter vacancies by location and role","a list of employers looking for new staff"],"definition":"A website that organizes job opportunities so candidates can search by relevant criteria, review requirements and terms, and find a clear application route.","goal":"Help candidates find suitable openings and apply.","audience":"Job seekers and employers advertising roles","sections":[{"name":"Find a role","purpose":"Offer useful role, location, and work-arrangement filters.","componentIds":["text-input","select","checkbox"]},{"name":"Vacancies","purpose":"Show consistent role and employer summaries.","componentIds":["card","badge","pagination"]},{"name":"Role details","purpose":"Explain responsibilities, requirements, and disclosed terms.","componentIds":["breadcrumb","accordion"]},{"name":"Apply and follow up","purpose":"Make the application method and expected next step clear.","componentIds":["button","file-upload","text-input","footer"]}],"mustHave":["Current vacancies and clear employer identity","Transparent role location and work arrangement","An accessible application route"],"avoid":["Expired roles presented as open","Collecting unnecessary sensitive information"],"examples":["A regional trades vacancy board","A remote nonprofit jobs directory"],"related":["directory","portfolio"],"prompts":{"short":"Build a job board with useful filters, clear vacancy details, employer information, and application links.","detailed":"Build a job board website for job seekers and employers advertising roles. Help candidates find suitable openings and apply. Include find a role, vacancies, role details, apply and follow up. Use responsive layouts, clear labels, keyboard access, and visible focus. Current vacancies and clear employer identity."},"tags":["tools","employment","listings"]},{"id":"landing-page","name":"Landing page","aliases":["campaign page","conversion page","single-offer page"],"looksLike":["one page asking me to sign up","a page selling one offer with a big action button","a focused page for an advertising campaign"],"definition":"A focused page that explains one offer and guides visitors toward one main action, such as signing up, requesting a quote, or downloading a guide.","goal":"Help visitors understand one offer and take its next step.","audience":"People arriving from a campaign or referral","sections":[{"name":"Offer and action","purpose":"State the benefit and the single next step.","componentIds":["hero-section","button"]},{"name":"Benefits","purpose":"Explain the value with a few concrete outcomes.","componentIds":["card"]},{"name":"Proof and questions","purpose":"Offer genuine evidence and address common concerns.","componentIds":["accordion"]},{"name":"Final action and details","purpose":"Repeat the action and provide contact and policy links.","componentIds":["button","footer"]}],"mustHave":["One clear primary action","Honest evidence for claims","A labelled form with a clear success state"],"avoid":["Competing primary actions","Invented testimonials or scarcity"],"examples":["A guide download campaign","A local service quote request"],"related":["saas-marketing","event","portfolio"],"prompts":{"short":"Build a landing page with one clear offer, benefits, proof, FAQs, and a primary action.","detailed":"Build a landing page website for people arriving from a campaign or referral. Help visitors understand one offer and take its next step. Include offer and action, benefits, proof and questions, final action and details. Use responsive layouts, clear labels, keyboard access, and visible focus. One clear primary action."},"tags":["business","conversion","campaign"]},{"id":"link-in-bio","name":"Link in bio","aliases":["bio link page","link hub","profile links page"],"looksLike":["one small page with all my important links","a stack of links from a social profile","a simple page sending visitors to my other pages"],"definition":"A compact page that introduces a person or organization and gathers a few important destinations, often reached from a social profile.","goal":"Help visitors quickly choose a useful destination.","audience":"People arriving from a profile or short shared link","sections":[{"name":"Identity","purpose":"Confirm whose page this is with a short introduction.","componentIds":["avatar"]},{"name":"Priority links","purpose":"Put the most important current destinations first.","componentIds":["button","card"]},{"name":"Contact and context","purpose":"Offer a contact route and any necessary disclosures.","componentIds":["footer"]}],"mustHave":["Descriptive link labels","Current destinations","Comfortable mobile touch targets"],"avoid":["Unclear labels such as click here","Too many equally emphasized links"],"examples":["An artist’s release and contact links","A community group’s useful destinations"],"related":["portfolio","landing-page"],"prompts":{"short":"Build a mobile-friendly link-in-bio page with an identity, prioritized descriptive links, and contact details.","detailed":"Build a link in bio website for people arriving from a profile or short shared link. Help visitors quickly choose a useful destination. Include identity, priority links, contact and context. Use responsive layouts, clear labels, keyboard access, and visible focus. Descriptive link labels."},"tags":["personal","links","profile"]},{"id":"membership","name":"Membership","aliases":["members website","membership portal","subscriber community"],"looksLike":["a site with content only members can access","a member area with account settings and resources","a club website with a private resource library"],"definition":"A website that gives a defined group access to resources, services, or community features, with clear membership terms and an understandable account area.","goal":"Help members access benefits and manage their participation.","audience":"Current and prospective members of a group","sections":[{"name":"Membership overview","purpose":"Explain benefits, eligibility, and any costs.","componentIds":["hero-section","card","button"]},{"name":"Join and account","purpose":"Make access, sign-in, and account recovery understandable.","componentIds":["text-input","checkbox","alert"]},{"name":"Member resources","purpose":"Organize the materials and services available to the member.","componentIds":["sidebar","card","tabs"]},{"name":"Manage membership","purpose":"Explain status, preferences, renewal, and leaving.","componentIds":["toggle-switch","accordion","button","footer"]}],"mustHave":["Clear access and renewal terms","Account recovery and support","An understandable cancellation or exit route"],"avoid":["Hidden auto-renewal terms","Public exposure of private member information"],"examples":["A professional association member portal","A paid workshop resource library"],"related":["social-network","educational","dashboard-admin"],"prompts":{"short":"Build a membership site with clear benefits, account access, member resources, and membership management.","detailed":"Build a membership website for current and prospective members of a group. Help members access benefits and manage their participation. Include membership overview, join and account, member resources, manage membership. Use responsive layouts, clear labels, keyboard access, and visible focus. Clear access and renewal terms."},"tags":["community","access","resources"]},{"id":"news","name":"News","aliases":["news website","online newspaper","news publication"],"looksLike":["a site with headlines and recent reporting","a newspaper website with sections and breaking stories","a homepage full of current news articles"],"definition":"A publication website that helps readers find current reporting, understand when it was published or updated, and distinguish news from opinion or advertising.","goal":"Help readers discover timely reporting and understand its context.","audience":"Readers following current events or a specialist beat","sections":[{"name":"Headlines and sections","purpose":"Prioritize important stories and show clear topic navigation.","componentIds":["navbar","card","badge"]},{"name":"Story lists","purpose":"Group reporting by topic and recency.","componentIds":["tabs","pagination"]},{"name":"Article and context","purpose":"Show attribution, dates, sources, and corrections.","componentIds":["breadcrumb","avatar","alert"]},{"name":"More reporting","purpose":"Offer related coverage and publication information.","componentIds":["card","footer"]}],"mustHave":["Publication and update timestamps","Clear author and source attribution","Labels for opinion and sponsored material"],"avoid":["Misleading headlines","Unlabelled advertisements presented as reporting"],"examples":["A neighborhood news publication","An independent science news site"],"related":["blog","forum"],"prompts":{"short":"Build a news site with topic sections, current headlines, readable reporting, and clear attribution.","detailed":"Build a news website for readers following current events or a specialist beat. Help readers discover timely reporting and understand its context. Include headlines and sections, story lists, article and context, more reporting. Use responsive layouts, clear labels, keyboard access, and visible focus. Publication and update timestamps."},"tags":["publishing","reporting","current-events"]},{"id":"nonprofit-church","name":"Nonprofit / church","aliases":["nonprofit website","church website","charity website"],"looksLike":["a site with a mission donations and volunteer information","a church site with service times and directions","an organization explaining its cause and how to help"],"definition":"A website that explains a community organization’s mission, activities, and practical ways to participate, volunteer, attend, or give support.","goal":"Help visitors understand the mission and take part.","audience":"Community members, supporters, volunteers, and visitors","sections":[{"name":"Mission and welcome","purpose":"Explain whom the organization serves and why it exists.","componentIds":["hero-section","button"]},{"name":"Programs and gatherings","purpose":"Show activities, service times, and ways to participate.","componentIds":["card","tabs"]},{"name":"Support and impact","purpose":"Explain volunteering and giving with transparent information.","componentIds":["button","accordion"]},{"name":"Visit and contact","purpose":"Provide practical access, location, and contact details.","componentIds":["footer","card"]}],"mustHave":["Current times and contact details","Transparent use of donations","Accessible participation and visiting information"],"avoid":["Pressure-based donation messaging","Outdated gathering information"],"examples":["A food support charity site","A local congregation website"],"related":["event","membership","landing-page"],"prompts":{"short":"Build a nonprofit site with its mission, programs, ways to help, impact, and practical visit details.","detailed":"Build a nonprofit / church website for community members, supporters, volunteers, and visitors. Help visitors understand the mission and take part. Include mission and welcome, programs and gatherings, support and impact, visit and contact. Use responsive layouts, clear labels, keyboard access, and visible focus. Current times and contact details."},"tags":["community","mission","volunteering"]},{"id":"portfolio","name":"Portfolio","aliases":["work showcase","personal portfolio","creative portfolio"],"looksLike":["a site showing projects someone has made","a collection of my best work and how to contact me","a designer website with case studies"],"definition":"A site that presents a person’s or team’s selected work, explains their contribution, and helps potential clients or employers decide whether to get in touch.","goal":"Show relevant work and make contacting the creator easy.","audience":"Potential clients, collaborators, and employers","sections":[{"name":"Introduction","purpose":"Explain who you are and the work you do.","componentIds":["hero-section","avatar"]},{"name":"Selected work","purpose":"Show a small selection with context and outcomes.","componentIds":["card","bento-grid"]},{"name":"Case studies","purpose":"Explain the problem, your role, and the result.","componentIds":["breadcrumb","tabs"]},{"name":"About and contact","purpose":"Provide background and a direct way to get in touch.","componentIds":["button","footer"]}],"mustHave":["A clear role and contribution for each project","Accessible project images with descriptions","A working contact route"],"avoid":["Unexplained image galleries","Claiming team work as solo work"],"examples":["A photographer’s selected projects","A developer’s case studies"],"related":["landing-page","link-in-bio"],"prompts":{"short":"Build a portfolio with selected work, case studies, an introduction, and clear contact details.","detailed":"Build a portfolio website for potential clients, collaborators, and employers. Show relevant work and make contacting the creator easy. Include introduction, selected work, case studies, about and contact. Use responsive layouts, clear labels, keyboard access, and visible focus. A clear role and contribution for each project."},"tags":["personal","work","creative"]},{"id":"real-estate","name":"Real estate","aliases":["property website","property listings site","real estate website"],"looksLike":["a website listing homes for sale or rent","a site with property photos prices and viewing requests","a place to filter houses by location and budget"],"definition":"A website for discovering and comparing properties, with structured listing details, photographs, location context, and a clear way to ask questions or arrange a viewing.","goal":"Help visitors evaluate suitable properties and contact a representative.","audience":"People researching homes or other properties","sections":[{"name":"Property search","purpose":"Filter by location, budget, and practical requirements.","componentIds":["text-input","select","checkbox"]},{"name":"Results","purpose":"Show price, location, and key facts consistently.","componentIds":["card","pagination","badge"]},{"name":"Property details","purpose":"Present photographs, specifications, and important disclosures.","componentIds":["carousel","tabs","accordion"]},{"name":"Enquiry and viewing","purpose":"Offer a contact route and viewing request.","componentIds":["text-input","date-picker","button","footer"]}],"mustHave":["Accurate prices and listing status","Clear location and property facts","A visible contact and correction route"],"avoid":["Misleading property photographs","Unexplained fees or outdated availability"],"examples":["A rental property catalogue","A local home sales website"],"related":["directory","booking"],"prompts":{"short":"Build a property site with search filters, clear listing facts, photo galleries, and viewing enquiries.","detailed":"Build a real estate website for people researching homes or other properties. Help visitors evaluate suitable properties and contact a representative. Include property search, results, property details, enquiry and viewing. Use responsive layouts, clear labels, keyboard access, and visible focus. Accurate prices and listing status."},"tags":["business","property","listings"]},{"id":"restaurant","name":"Restaurant","aliases":["restaurant website","cafe website","dining website"],"looksLike":["a site showing a menu opening hours and directions","a cafe page with food prices and table reservations","a website for finding somewhere to eat"],"definition":"A website that helps guests decide whether and how to visit a food business by showing its menu, prices, opening hours, location, and booking or ordering options.","goal":"Help guests find practical dining information and plan a visit.","audience":"People choosing a place to eat","sections":[{"name":"Welcome and visit","purpose":"Show the food offering, location, and main guest action.","componentIds":["hero-section","button"]},{"name":"Menu","purpose":"Present readable dishes, prices, and dietary information.","componentIds":["tabs","card"]},{"name":"Hours and reservations","purpose":"Explain opening times and booking or ordering options.","componentIds":["card","date-picker","button"]},{"name":"Contact and access","purpose":"Provide directions, accessibility details, and contact information.","componentIds":["footer","accordion"]}],"mustHave":["Readable text menus with prices","Current hours and location","A clear way to ask about dietary needs"],"avoid":["Image-only menus","Music that plays automatically"],"examples":["A neighborhood cafe website","A family-run restaurant site"],"related":["booking","directory"],"prompts":{"short":"Build a restaurant site with a readable menu, prices, current hours, location, and reservation options.","detailed":"Build a restaurant website for people choosing a place to eat. Help guests find practical dining information and plan a visit. Include welcome and visit, menu, hours and reservations, contact and access. Use responsive layouts, clear labels, keyboard access, and visible focus. Readable text menus with prices."},"tags":["business","food","local"]},{"id":"saas-marketing","name":"SaaS marketing","aliases":["software marketing site","subscription software website","SaaS website"],"looksLike":["a website explaining software plans and a free trial","a product site showing features pricing and demos","a page convincing teams to try an online tool"],"definition":"A public website that explains subscription software, who it helps, how it works, and what it costs, guiding visitors toward a trial, demo, or purchase.","goal":"Help prospective customers evaluate the software and choose a next step.","audience":"People and teams evaluating subscription software","sections":[{"name":"Value proposition","purpose":"State the problem solved and offer a trial or demonstration.","componentIds":["hero-section","button"]},{"name":"Features and use cases","purpose":"Explain concrete workflows and benefits.","componentIds":["tabs","card"]},{"name":"Plans and proof","purpose":"Explain plan limits and show verifiable customer evidence.","componentIds":["card","data-table"]},{"name":"Questions and support","purpose":"Answer purchase questions and link to help.","componentIds":["accordion","footer"]}],"mustHave":["Clear pricing terms and plan limits","A truthful product demonstration","Visible help and contact options"],"avoid":["Vague claims without product detail","Hiding renewal terms"],"examples":["A scheduling tool marketing site","A team document tool product site"],"related":["landing-page","documentation","dashboard-admin"],"prompts":{"short":"Build a SaaS marketing site with benefits, product demos, transparent plans, and a trial action.","detailed":"Build a saas marketing website for people and teams evaluating subscription software. Help prospective customers evaluate the software and choose a next step. Include value proposition, features and use cases, plans and proof, questions and support. Use responsive layouts, clear labels, keyboard access, and visible focus. Clear pricing terms and plan limits."},"tags":["business","software","subscription"]},{"id":"social-network","name":"Social network","aliases":["social website","social media site","community feed site"],"looksLike":["a site where people post updates and follow each other","profiles with a feed of friends posts","a community website with sharing and reactions"],"definition":"A website centered on people’s profiles, updates, and connections, where members share content, follow others, and respond within clear privacy and moderation rules.","goal":"Help members share updates and connect safely.","audience":"Members who want ongoing social interaction","sections":[{"name":"Identity and navigation","purpose":"Show account context and access to connections and settings.","componentIds":["navbar","avatar","dropdown-menu"]},{"name":"Share an update","purpose":"Provide a clear posting action and attachment options.","componentIds":["text-input","file-upload","button"]},{"name":"Feed and interaction","purpose":"Present updates with authors, context, and response actions.","componentIds":["card","avatar","kebab-menu"]},{"name":"Safety and preferences","purpose":"Make privacy, reporting, and blocking easy to find.","componentIds":["toggle-switch","modal","alert","footer"]}],"mustHave":["Visible privacy and audience controls","Reporting and blocking routes","Accessible controls with clear action names"],"avoid":["Public posting without a clear audience","Engagement tricks that obscure user choices"],"examples":["A neighborhood sharing network","A hobby photo-sharing community"],"related":["forum","membership"],"prompts":{"short":"Build a social site with profiles, an update feed, sharing controls, privacy settings, and reporting.","detailed":"Build a social network website for members who want ongoing social interaction. Help members share updates and connect safely. Include identity and navigation, share an update, feed and interaction, safety and preferences. Use responsive layouts, clear labels, keyboard access, and visible focus. Visible privacy and audience controls."},"tags":["community","sharing","profiles"]}],"assetCount":6,"assets":[{"id":"icon","name":"Icon","definition":"A small symbol that suggests an action, object, or status. An icon is what the picture means; SVG is one way to draw it.","looksLike":"a tiny magnifying glass beside a search box","whenToUse":"Use familiar symbols for common actions, ideally beside a text label.","note":"A picture alone is not a button. Put actions in a real button and give icon-only buttons an accessible name.","prompt":"Add a search icon beside the Search label. Hide the decorative icon from screen readers.","source":"https://lucide.dev/guide/accessibility","url":"/assets/#icon"},{"id":"svg","name":"SVG","definition":"A text-based image format that describes shapes and paths. Vector shapes stay sharp when resized; an SVG can contain an icon, logo, or illustration.","looksLike":"a logo that stays crisp when I zoom in","whenToUse":"Use for scalable logos, diagrams, and interface graphics.","note":"Hide decorative SVGs from screen readers. Give meaningful standalone images an accessible text alternative.","prompt":"Use an SVG logo that scales without distortion and has a meaningful text alternative.","source":"https://developer.mozilla.org/en-US/docs/Web/SVG","url":"/assets/#svg"},{"id":"favicon","name":"Favicon","definition":"The small image identifying a site in browser tabs and bookmarks. Favicon describes its job, not a single file format.","looksLike":"the tiny picture beside a browser tab title","whenToUse":"Use a simple, recognizable mark that works at a very small size.","note":"A detailed full-size logo may become unreadable in a tab. Keep the page title meaningful too.","prompt":"Add a simple favicon that stays recognizable in browser tabs and bookmarks.","source":"https://developer.mozilla.org/en-US/docs/Glossary/Favicon","url":"/assets/#favicon"},{"id":"sprite","name":"Sprite","definition":"A collection of graphics stored together for reuse. A raster sprite sheet uses regions of one image; an SVG sprite stores reusable symbols.","looksLike":"a sheet of little pictures reused around a page","whenToUse":"Use when many graphics share a source. Reference an SVG symbol with a use element.","note":"A sprite is a way to organize assets, not an animation format. Each visible use still needs the right accessible name or decorative treatment.","prompt":"Group repeated icons in an SVG sprite. Give each icon instance appropriate accessible text or mark it decorative.","source":"https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/symbol","url":"/assets/#sprite"},{"id":"lottie","name":"Lottie","definition":"An animation format based on JSON, played by a compatible player. It can describe animated vector artwork; it is different from a video or an SVG file.","looksLike":"a little illustration that moves after a task finishes","whenToUse":"Use for a small, purposeful animation such as a success illustration.","note":"Provide a static alternative for reduced motion, and never rely on motion alone to communicate a result.","prompt":"Add a Lottie success animation with a static reduced-motion fallback and visible confirmation text.","source":"https://lottiefiles.com/what-is-lottie","url":"/assets/#lottie"},{"id":"og-image","name":"Open Graph image","definition":"The image a service may show when someone shares a page link. The page points to it through og:image metadata; the sharing service controls the final preview.","looksLike":"the large picture attached to a shared link","whenToUse":"Use a clear title and recognizable artwork that still make sense when cropped.","note":"This is a social preview asset, not the favicon. Use a publicly reachable absolute image URL and provide og:image:alt text.","prompt":"Add an Open Graph image for link previews with a readable title, an absolute URL, and descriptive image alt metadata.","source":"https://ogp.me/","url":"/assets/#og-image"}]}