# Application Calendar and Scheduling: Working Hours Editor

Weekly availability settings with per day switches, bookable time range chips, a timezone note, weekly total badge, and save actions.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/working-hours-editor
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Calendar and Scheduling](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/working-hours-editor.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-calendar-scheduling-working-hours-editor
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button, switch
- Installs to: `@/components/blocks/application-pro/calendar-scheduling/working-hours-editor`

## About this block

Working Hours Editor is the weekly availability settings
behind a booking page, with the promise that invitees can
only book inside these windows. Seven weekday rows each
pair an on and off switch with a bookable time range and a
daily total: Monday through Thursday run 9:00 am to
5:00 pm at 8 h, Friday runs 9:00 am to 1:00 pm at 4 h, and
Saturday and Sunday read Unavailable. The footer states
the windows apply in Europe/London (UTC+1) and shift with
daylight saving automatically, then pairs a 36 h bookable
per week badge with Cancel and Save hours.

Days are one array with enabled, start, end, and hours
fields, and the weekly total is summed from the row hours
rather than hard coded. Toggling a switch off collapses
the range to the Unavailable state, so editing the array
is all it takes to reshape the week.

## When to use

Reach for this block on the settings surface of a
scheduling tool where a person defines when they accept
bookings. Wire the switches and time ranges to your
availability record and Save hours to your settings
mutation.

A natural flow around it on an Application Pro page:

**Before**

- [Profile account](https://www.shadcn-ui-blocks.com/blocks/application-pro/profile-account)
- [Settings pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages)

**After**

- [Scheduling link card](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling)
- [Availability grid](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling)

## What you can display

One strong use is the personal bookable hours editor.
Other working hours editor uses:

- **Support shift editor.** Same weekday rows scoped to a
  team queue instead of one person.
- **Store opening hours.** Swap bookable windows for open
  and close times on a business profile.
- **Quiet hours setting.** Invert the meaning so the
  enabled rows mark do not disturb windows.

> Tip: keep the timezone line pinned to the footer; a
> window that reads 9 to 5 means nothing until the reader
> knows whose clock it follows.

## More in Application Calendar and Scheduling

- [Availability Grid](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/availability-grid)
- [Booking Confirmation Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/booking-confirmation-card)
- [Calendar Sync Status](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/calendar-sync-status)
- [Event Detail Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/event-detail-panel)
- [Event List Day](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/event-list-day)
- [Invite RSVP Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/invite-rsvp-card)
- [Meeting Poll Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/meeting-poll-panel)
- [Mini Calendar Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/mini-calendar-card)
- [Month Calendar](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/month-calendar)
- [Recurring Event Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/recurring-event-form)
- [Reschedule Request Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/reschedule-request-panel)
- [Room Booking Timeline](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/room-booking-timeline)
- [Scheduling Link Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/scheduling-link-card)
- [Team Availability Heatmap](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/team-availability-heatmap)
- [Timezone Compare Row](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/timezone-compare-row)
- [Week Agenda](https://www.shadcn-ui-blocks.com/blocks/application-pro/calendar-scheduling/week-agenda)
