Skip to content

    Browse components

    Task Widget

    An iOS-like glass widget with a live clock, weather line and tactile task cards that frost toward the tail of the list.

    Credit: Calamansi UI (MIT)

    Open
    Customize
    calamansi
    slate
    citrus
    black
    dark
    rounded
    squircle

    12h
    24h

    Installation

    npx shadcn@latest add @glint-ui/task-widget

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/task-widget.json

    Usage

    import { TaskWidget } from "@/components/ui/task-widget";
    
    <TaskWidget
      weather={{ condition: "Sunny", temperature: "31°" }}
      defaultTasks={[{ id: 1, title: "Review PRs" }, { id: 2, title: "Ship it", completed: true }]}
    />

    Props

    PropTypeDefaultDescription
    variant"calamansi" | "slate" | "citrus" | "black" | "dark""calamansi"Glass tint.
    corner"rounded" | "squircle""rounded"Shell corner: large radius, or a squircle.
    titlestring"Today"Section title above the task list.
    showClockbooleantrueShow the live clock.
    timeFormat"12h" | "24h""12h"Clock format.
    tasksReactNode—Controlled `{ id, title, completed?, tag?, icon? }[]`.
    defaultTasksReactNode—Initial tasks when uncontrolled. Ships with five samples.
    onTaskToggleReactNode—`(id, completed) => void`, fired when a card is toggled.
    weatherReactNode—`{ condition?, temperature?, icon? }`. Falls back to Sunny / Starry by color scheme.
    classNamestring—Extra classes for the root element.