For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: A start and end time on a 30 minute grid, where 6 presets keep the start, move the end and wrap past midnight
When to use
- New record forms over the current page: a project, a quick task or entry, or a finance account
- Access flows: email invites with a role, an app picker and the consent step before a sync
- Pickers and account tasks: a time span, a starter template, settings, a checklist, cancellation or help
When not to use
- A full event form where the span sits beside a date, members and an image: use the Create Schedule block
- A single hour and minute field in a form, with no span or presets: use the Time Picker component
- A plain modal shell you fill with your own title, body and buttons: use the Dialog component
- A data entry layout that sits in the page itself rather than over it: use the Form blocks
- A one question confirm, such as deleting a record, with nothing to fill in: use the Alert Dialog component
Agent notes
- Apply only calls
setOpen; readstartTimeandendTimethere and hand the span to your scheduler - Replace the 48 half hour
TIME_OPTIONSand 6DURATION_PRESETSin data.ts; a preset off the slot grid leaves the end at the start - Times are HH:MM strings with no date, and
getDurationMinutescounts an end at or before the start as the next day - Each root renders its own launch
Buttonand startsopenas true inuseState; swap in your trigger and start it closed - Primary actions only close through
setOpen, fire a sonnertoastor have no handler; wire your submit and API call there - Each page.tsx centers the root in a
min-h-svhmain with ansr-onlyh1; mount only the root component inside your page
https://web.dev.reui.io/blocks/application/dialog/dialog-1.mdget_block("dialog-1")npx shadcn@latest add @reui/dialog-1Shadcn Duration Picker Block
Duration picker dialog with start and end time selects plus quick preset toggles. Part of the ReUI Shadcn Application Dialog blocks collection.
Modal for choosing a time span: start and end time Selects plus quick presets (30 min to 1 day) that auto-adjust the end time. Built with shadcn Dialog, Select, ToggleGroup, Field, Tooltip, Button. Time range picker, schedule, booking duration.
It is composed from Button, Dialog, Field, Item, Select, Toggle Group, Tooltip, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Duration Picker Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn Application Dialog blocks to assemble a full screen instead of a single section.
All Shadcn Application Dialog Blocks
The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.
- Bulk Email Invite Workspace invite dialog with multi-email input and role select dropdown
- Cancel Plan Survey Plan cancellation dialog with multi-select reason checkboxes, feedback textarea, and warning banner
- Launch Checklist Workspace launch checklist dialog with accordion sections and inline-editable fields
- Template Library Wide template library dialog with category rail, live search, and selectable template cards
- Connect App Picker App connection dialog with searchable integration grid and single-select checkbox cards
- Support Hub Help and support hub dialog with self-serve routes plus advisor and direct-desk escalation cards
- Per-Person Invite Multi-row collaborator invite dialog with per-row email field and role select
- Project With Cover Create project dialog with cover image upload and status, priority, assignee, and label comboboxes
- Account Settings Modal Tabbed account settings dialog with sidebar rail for profile, workspace, team and billing
- Finance Account Setup Two-pane finance account creation dialog with live account card preview
- Quick Create Entry Tabbed create-entry dialog with status, assignee, due date, priority and label comboboxes
- Project Templates Full-screen create project dialog with template prefill and multi-select labels
- OAuth Consent OAuth connection consent dialog with provider logo rail and radio sync-scope picker
Related Shadcn Application Block Categories
- App Shell (35) App shell layouts with sidebar, rail, or top bar navigation for dashboards, settings panels, and multi-page apps.
- Auth (20) Login, register, forgot password, and two-factor authentication page layouts.
- Card (43) Card components for content display, data summaries, and interactive elements.
- Dashboard (8) Dashboard components and layouts that combine stats, charts, and tables into a complete overview screen.
- Empty State (14) Empty state screens and no-data placeholders with recovery actions, onboarding prompts, and contextual guidance.
- Event Calendar (6) Event calendar blocks with month, week and day views, drag-and-drop scheduling, and inline editing.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the Duration Picker block?
Use it for a start and end time on a 30 minute grid, where 6 presets keep the start, move the end and wrap past midnight.
The Dialog category fits:
- New record forms over the current page: a project, a quick task or entry, or a finance account
- Access flows: email invites with a role, an app picker and the consent step before a sync
- Pickers and account tasks: a time span, a starter template, settings, a checklist, cancellation or help
For a full event form where the span sits beside a date, members and an image, use the Create Schedule block. For a single hour and minute field in a form, with no span or presets, use the Time Picker component. For a plain modal shell you fill with your own title, body and buttons, use the Dialog component. For a data entry layout that sits in the page itself rather than over it, use the Form blocks. For a one question confirm, such as deleting a record, with nothing to fill in, use the Alert Dialog component.
What is the Duration Picker block built with?
Can I restyle the Duration Picker block?
How should I use Shadcn dialog blocks in a real project?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.