Prompt cheat sheet
Find the component you need, copy a short prompt, and make it your own. 40 components and 6 asset topics, all in one place.
Token counts are rough estimates for prompt text only; actual counts vary by model and context.
Make the prompt yours
- Choose a component and copy its prompt.
- Add your framework, page, and real content.
- Keep your design tokens and ask for keyboard support and a mobile layout.
Use one prompt for a focused request. Save the full text in AGENTS.md or CLAUDE.md when you want a vocabulary reference.
Overlays
Bottom sheet
panel that slides up from the bottom of the screen
Add a bottom sheet with a drag handle. Swipe down or tap outside to close.
~19 estimated prompt tokensCommand palette
search box floating over the page for actions
Add a command palette that filters actions as I type and closes with Escape.
~19 estimated prompt tokensDrawer
panel that slides in from the side
Add a right-side drawer. Close on overlay click and Esc.
~14 estimated prompt tokensDropdown menu
list of actions that opens below a button
Add a dropdown menu with keyboard navigation and Escape dismissal.
~17 estimated prompt tokensModal
popup with a dark background behind it
Add a centered modal with title, body, Cancel and Confirm buttons. Trap focus.
~20 estimated prompt tokensPopover
small box that appears next to a button when you click it
Add a popover anchored to this button. Close on outside click and Esc.
~18 estimated prompt tokensTooltip
small text label that appears when I hover
Add a tooltip on hover and keyboard focus. Dismiss it with Escape.
~17 estimated prompt tokens
Inputs
Button
filled rectangle you press to do something
Add a button with a clear action label and visible keyboard focus.
~17 estimated prompt tokensCheckbox
little square you tick next to a choice
Add a checkbox with a clickable label and keyboard toggling.
~15 estimated prompt tokensDate picker
small calendar where I choose a day
Add a labeled date picker with keyboard input and a visible selected date.
~19 estimated prompt tokensFile upload
choose file button beside a filename
Add a labeled file upload with a file picker and clear file-type guidance.
~19 estimated prompt tokensRadio
round choices where only one can be selected
Add a radio group with labeled choices and one selection at a time.
~17 estimated prompt tokensSelect / combobox
field with a down arrow that opens choices
Add a labeled select with keyboard-operable options and a visible selected value.
~21 estimated prompt tokensSlider
line with a knob I drag to change a value
Add a labeled slider with keyboard adjustment and a visible current value.
~19 estimated prompt tokensText input
empty box where I type my name
Add a text input with a visible label and associated help text.
~16 estimated prompt tokensToggle switch
pill that slides left and right to turn something on or off
Add an on/off toggle switch with a label. Apply the change instantly.
~18 estimated prompt tokens
Feedback
Alert
wide message strip with a warning
Add an alert with a clear message that stays visible until resolved.
~17 estimated prompt tokensBadge
small pill with a status word inside
Add a badge showing a short status label without relying on color alone.
~18 estimated prompt tokensEmpty state
message saying there is nothing here yet
Add an empty state explaining why no items appear and offering a next step.
~19 estimated prompt tokensProgress bar
bar that fills up as a file uploads
Add a labeled progress bar showing task completion and a visible percentage.
~19 estimated prompt tokensSkeleton loader
gray boxes that stand in for content while it loads
Replace the list spinner with skeleton placeholders.
~13 estimated prompt tokensSpinner
spinning circle while I wait
Add a spinner with loading text and respect reduced-motion preferences.
~18 estimated prompt tokensToast
small message that pops up in the corner and disappears
Show a toast bottom-right after save. Auto-dismiss in 3s.
~15 estimated prompt tokens
Layout
Accordion
sections that expand when you click
Add an accordion with keyboard-operable headings that expand and collapse content.
~21 estimated prompt tokensAvatar
small round photo beside a persons name
Add an avatar with initials as a fallback and an accessible identity label.
~19 estimated prompt tokensBento grid
tiles of different sizes arranged like a collage
Add a bento grid with varied tile sizes that stacks on small screens.
~18 estimated prompt tokensCard
box with a picture title and description
Add a card grouping a title and description with a clear action link.
~18 estimated prompt tokensCarousel
pictures you move through with left and right arrows
Add a carousel with labeled previous and next buttons. Keep autoplay off.
~19 estimated prompt tokensData table
information lined up in rows and columns
Add a data table with a descriptive caption and associated column headers.
~19 estimated prompt tokensHero section
big headline and main button at the start of a page
Add a hero section with a clear headline and a prominent action link.
~18 estimated prompt tokens
Icons & assets
Hamburger icon
three horizontal lines stacked in a button
Add a hamburger button that opens the mobile menu.
~13 estimated prompt tokensKebab menu
three vertical dots that open extra actions
Add a kebab menu with a labeled three-dot trigger and keyboard-operable actions.
~20 estimated prompt tokens
Asset prompts
Ask for the right graphic, format, or animation.
Icon
a tiny magnifying glass beside a search box
Add a search icon beside the Search label. Hide the decorative icon from screen readers.
~22 estimated prompt tokensSVG
a logo that stays crisp when I zoom in
Use an SVG logo that scales without distortion and has a meaningful text alternative.
~22 estimated prompt tokensFavicon
the tiny picture beside a browser tab title
Add a simple favicon that stays recognizable in browser tabs and bookmarks.
~19 estimated prompt tokensSprite
a sheet of little pictures reused around a page
Group repeated icons in an SVG sprite. Give each icon instance appropriate accessible text or mark it decorative.
~29 estimated prompt tokensLottie
a little illustration that moves after a task finishes
Add a Lottie success animation with a static reduced-motion fallback and visible confirmation text.
~25 estimated prompt tokensOpen Graph image
the large picture attached to a shared link
Add an Open Graph image for link previews with a readable title, an absolute URL, and descriptive image alt metadata.
~30 estimated prompt tokens