Components
Dialogs & drawers
Accent
Scheme
Backdrop motion
Components

Dialogs & drawers

Three windows over the page, all the browser's own modal dialog: a dialog for work, an alert dialog for a question that must be answered, a drawer that slides in from an edge. Each opens by a flag the page holds, written back when it closes.

Dialog

Escape and a press outside close it. There is no trigger part: any press that sets the flag opens it.
One lineA title, a description and a cross; the children go under them.
open: false
Result
nothing yet
Save changes?Your edits are kept on this device until you send them.
Parts, with a formDialogContent lays out a header, anything, and a footer. DialogClose is a button that closes after its press.
AL
Ada Lovelace@ada
Edit profileChange your profile here. Save when you are done.
No close button, a widthshowCloseButton=false leaves the footer as the only way out besides Escape and a press outside.
copied 0 times
Share linkAnyone with the link can see this.
Scrolling contentThe dialog keeps its header and footer; a box inside scrolls.
not answered
Terms of useTwelve short paragraphs. Scroll to the end.
1. UseWhat you make with this is yours. We keep it only to show it back to you, and remove it when you ask. Nothing here is a promise of fitness for a purpose.
2. AccountsWhat you make with this is yours. We keep it only to show it back to you, and remove it when you ask. Nothing here is a promise of fitness for a purpose.
3. ContentWhat you make with this is yours. We keep it only to show it back to you, and remove it when you ask. Nothing here is a promise of fitness for a purpose.
4. PrivacyWhat you make with this is yours. We keep it only to show it back to you, and remove it when you ask. Nothing here is a promise of fitness for a purpose.
5. PaymentWhat you make with this is yours. We keep it only to show it back to you, and remove it when you ask. Nothing here is a promise of fitness for a purpose.
6. ChangesWhat you make with this is yours. We keep it only to show it back to you, and remove it when you ask. Nothing here is a promise of fitness for a purpose.
7. EndingWhat you make with this is yours. We keep it only to show it back to you, and remove it when you ask. Nothing here is a promise of fitness for a purpose.
8. LiabilityWhat you make with this is yours. We keep it only to show it back to you, and remove it when you ask. Nothing here is a promise of fitness for a purpose.
9. DisputesWhat you make with this is yours. We keep it only to show it back to you, and remove it when you ask. Nothing here is a promise of fitness for a purpose.
10. NoticesWhat you make with this is yours. We keep it only to show it back to you, and remove it when you ask. Nothing here is a promise of fitness for a purpose.
11. LawWhat you make with this is yours. We keep it only to show it back to you, and remove it when you ask. Nothing here is a promise of fitness for a purpose.
12. ContactWhat you make with this is yours. We keep it only to show it back to you, and remove it when you ask. Nothing here is a promise of fitness for a purpose.
A form that checks firstA plain Button keeps the dialog open until the form is good, then sets the flag false itself.
ProjectsNone yet. Make one.
New projectIt starts empty; you can change all of this later.
Only you

Alert dialog

A question the reader must answer: role=alertdialog, and a press outside does not close it. Action and Cancel both close after their press.
Default512 wide, the words at the start, the buttons at the end.
Answer
nothing yet
Are you absolutely sure?This cannot be undone. It removes your account and everything in it from our servers.
Small, with media, destructivesize="sm" is 320 wide with centred words; the footer is told to centre.
Kitchen quote
Oak door sizes
Invoice 0412
3 of 3 chats
Delete the chat?"" is gone for good.
Default size with media, an action that waitsThe action is disabled until the box is ticked; Cancel takes another variant.
signed in
Sign out everywhere?Every phone, tablet and browser will have to sign in again.

Drawer

A modal that slides in from an edge. Draw it towards the edge to close it, by its handle, its header or (a finger) anywhere on it; or press outside, or Escape. With modal=false it stays on the page instead, at a peek.
Each side, a control insideOne drawer, its direction a state. Left and right have a slim handle on their inner edge.
bottom
350Daily goalcalories
bottomLast opened from
Submitted
nothing yet
Move goalSet your daily activity goal.
350CALORIES/DAY
Snap pointsIt opens at 45% of its height; draw it up for all of it, down to step back and then to close. The content scrolls.
open: false
Release notesDrag the handle up to read them all.
0.9 Drawers snapSmall fixes, and the thing its name says.
0.8 Charts draw themselvesSmall fixes, and the thing its name says.
0.7 Data table partsSmall fixes, and the thing its name says.
0.6 Date pickers read typingSmall fixes, and the thing its name says.
0.5 Command rankingSmall fixes, and the thing its name says.
0.4 Context menusSmall fixes, and the thing its name says.
0.3 Combobox chipsSmall fixes, and the thing its name says.
0.2 Alert dialog sizesSmall fixes, and the thing its name says.
Controls inside, no handlehandle=false: only the buttons, Escape and a press outside close it. What it changes is live behind it.
Wi-Fi on
Do not disturb off
Brightness 70%
Quick settingsThey apply as you change them.
Wi-FiShop floor
Do not disturb
Brightness70%
One that stays on the pagemodal=false: at the foot of the window, showing its peek, with the page alive behind it. Press its header or its handle, or draw it up; Escape, or a drag down from the top of its list, brings it back to the peek.
open: false · snap: 0
esc
Pages
StartStart
Buttons & badgesComponents
Cards & disclosureComponents
Dialogs & drawersComponents
Menus & commandsComponents
Dates & tablesComponents
ChartsComponents
Chart galleryComponents
FieldsComponents
ChoicesComponents
DisplayComponents
NavigationComponents
Popovers & sheetsComponents
MessagesChat & AI
Prompt inputChat & AI
Reasoning & toolsChat & AI
Developer partsChat & AI
ConversationChat & AI
Code artifactsChat & AI
VoiceChat & AI
Code blocksChat & AI
MarkdownChat & AI
EditorElements
TerminalElements
FlowElements
3D boxesElements
PaintElements
SurfaceElements
MediaElements
IconsElements
PrimitivesElements
SQLBatteries
StorageBatteries
Net & resourcesBatteries
Crypto & bytesBatteries
ZipBatteries
TablesBatteries
PDFBatteries
TimeBatteries
ImagesBatteries
ScanBatteries
Video & audioBatteries
SearchBatteries
SyntaxBatteries
PatternsBatteries
NotifyBatteries
ShareBatteries
State & logicLanguage
WorkersLanguage
Events & elementsLanguage
StylingLanguage
RoutesLanguage
ShortcutsLanguage
Long listsLanguage
Failures & tryLanguage
Back endBack end
Models & writesBack end
Rules & failuresBack end
Jobs & schedulesBack end
Running itBack end
ExtensionsBack end
AIBack end
AnalyticsBack end
AboutAbout
↑↓move
↵open
676 places · ranked by BM25