Cloff Labs

Calendar Widget

Multipurpose widget for your app.

Installation

Run the following command

npx shadcn@latest add https://ui.cloffstudio.com/r/calendar-widget.json

Props

PropsTypeDefaultDescription
titlestring-Event title displayed in the widget (required).
timeLabelstring-Short label such as 'In 15 mins' (required).
timeRangestring-Human readable time range like '01:00 PM - 2:30 PM' (required).
guestsGuest[][]Array of guest objects shown when the widget is expanded (see Guest shape below).
layoutIdstring"container"Optional layoutId used for motion layout animations (defaults to 'container').
classNamestring-Optional additional className applied to the root element.
Guest{ id: number | string; name: string; image: string; timezone?: string }-Shape of a guest object used inside `guests`.
Guest.idnumber | string-Unique identifier for the guest (number or string).
Guest.namestring-Guest display name.
Guest.imagestring-URL to the guest's avatar image.
Guest.timezonestring (optional)undefinedOptional timezone string to display next to the guest's name.