---
title: "Weekly availability"
description: "Bookable hours for each weekday: a switch per day, one or more from–to ranges, copy to other days, and Save."
plan: Pro
docs: https://ui.edbn.me/docs/blocks/weekly-availability
---

# Weekly availability

Bookable hours for each weekday: a switch per day, one or more from–to ranges, copy to other days, and Save.

Each weekday has a switch and its name at one width, so the times line up. An open day holds one or more from–to ranges in half-hour steps; an off day reads Unavailable at the same height. Add hours appends a range after the last, an extra range has its own remove button, and Copy sends a day's hours to the other open days. A range that ends before it starts, or runs into the one above, says so under it and marks its field. Save stays off until something changes and while a range is wrong, shows a spinner while it saves, and Discard puts the last saved week back. In a narrow card the ranges drop under each day.

A Pro block built on Base UI and Tailwind CSS v4.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/weekly-availability
```

## Dependencies
- npm: lucide-react@^1.33.0
- edbn: edbn-base, button, card, label, select, separator, spinner, switch, tooltip

## Source

The source is part of Pro (https://ui.edbn.me/pricing). The install above adds it to the project, ready to edit.

## More scheduling blocks

All 3, with install commands: https://ui.edbn.me/docs/blocks/scheduling · https://ui.edbn.me/docs/blocks/scheduling.md

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
