Skip to content

Time slots

A grid of bookable times, available, nearly full or taken, built on radio buttons.

Time slots

Friday 2 October

Installation

Everything ships in one stylesheet. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">

Prefer to own the files? /r/time-slots.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-slotsA <fieldset> of slots with a <legend>; auto-filling columns.
mn-slotOne slot: a <label> around a radio and the time. A <small> line adds context.
mn-slot-fewFew places left: the note turns warning colour.
input:disabledA taken slot, struck through and not selectable.

Accessibility

  • It is a native radio group: Tab reaches it, arrow keys move between times, and screen readers announce “3 of 12”.
  • Say what “few left” means in the note (“2 left”), and keep taken times visible but disabled so the day’s shape is clear.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page