Due Date Chip

Small Tailwind due date chip with a calendar icon that switches to a red border and icon when overdue. Use it on task cards, tickets and boards.

src/registry/ui/due-date-chip.tsx/r/due-date-chip.json

Installation#

bash
npx shadcn@latest add @minidev/due-date-chip

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/due-date-chip.json

Usage#

tsx
import { DueDateChip } from "@/components/ui/due-date-chip"

export function Example() {
  return (
    <DueDateChip date="Tomorrow" />
  )
}

API reference#

DueDateChip props
PropTypeDefault
date*string-
overdueboolean-
classNamestring-

* required

Dependencies#

npm

lucide-react

Built from

No other MiniDev files

Examples#

All kanban, timeline and workflow components

Learn more