Skip to content
WingoUI
ComponentsTemplatesDocsPricingAI agentsBlogChangelogContact
Components
Buttons & Actions
ButtonButton GroupCopy ButtonDelete ButtonTheme ToggleToggleToggle Group
Inputs
Avatar UploadCalendarCheckboxColor PickerComboboxCountry SelectCron PickerCurrency InputDate PickerDate Range PickerDate Time PickerDuration PickerEmail InputEmoji PickerFile UploadFilter BuilderInputInput GroupListboxMasked InputMention InputMonth PickerMulti SelectNumber InputOTP InputPassword InputPhone InputRadio GroupRatingSearch InputSegmented ControlSelectSignature PadSliderSwitchTag InputTextareaTime PickerTimezone SelectTree Select
Forms
Address InputBooking WidgetCSV ImportFieldForm WizardInline EditInvoice line itemsRich Text EditorSchema Builder
Navigation
Back To TopBounce SidebarBreadcrumbCommand MenuGlobal SearchGooey NavHook SidebarNav MenuNav TabsPaginationProximity SidebarScroll ProgressSidebarStepsTable Of ContentsTabsTopbarUser MenuWorkspace Switcher
Overlays
Alert DialogContext MenuDialogDrawerDropdown MenuFamily DrawerHover CardPopoverShare DialogSheetShortcuts DialogTooltipTour
Feedback
AlertBannerCookie ConsentEmoji ReactionEmpty StateNotification BellNotification CenterProgressRoute ProgressSetup ChecklistSkeletonSpinnerToast
Data Display
Approval FlowAvatarBadgeCalendar ViewCode BlockComment ThreadContact cardCountdownDescription ListDiff ViewerFile ListFile managerFolderGanttJSON ViewerKbdLog ViewerMarkdownPresenceSchedulerTagTimelineTree View
Tables & Lists
Audit LogData TableDeal PipelineEditable GridKanbanListMembers tablePermissions MatrixTableTask ListVirtual List
Charts & Stats
Animated CounterArea chartBar chartDonut chartFunnel chartGaugeGitHub ActivityHeatmap calendarLeaderboardLine chartRadar chartRadial barSparklineStat CardTrackerTrend badge
Layout
AccordionApp ShellCardCollapsibleDetail LayoutEntity HeaderPage HeaderScroll AreaSeparatorSettings LayoutSplit ViewToolbar
Media
Audio PlayerCarouselCSV ViewerDOCX EditorDOCX ViewerExcel ViewerFile SystemImage compareImage CropperImage GalleryImage LightboxLocation MapPDF ViewerPowerPoint ViewerQR CodeStep PlayerVideo Player
AI Kit
Agent Status CardChat MessageChat ThreadChat WidgetConversation ListFluid OrbGrid RevealMatrix OrbModel PickerPrompt InputReasoning IndicatorRule BuilderSuggestion ChipsTool Call TimelineUsage MeterVoice InputWorkflow Canvas
Text & Effects
Background PatternGravity LettersMarqueeTerminalText AnimateText Rotate
Mobile
Action SheetBottom Tab BarFABHaptic ButtonHero HeaderInstall PromptLarge Title HeaderNotification BannerOnboarding CarouselPicker WheelPull To RefreshSlide To ConfirmSticky CTA BarSwipe DeckSwipeable Tabs
Commerce
Cart drawerCategory pickerCheckout stepsCoupon inputFavorite buttonFilter panelListing cardListing gridOrder trackerPricePrice rangePricing tableProduct galleryQuantity stepperReviewsSeller card
Marketing Sections
App Download SectionBlog Cards SectionCTA SectionFAQ SectionFeature GridFeature ShowcaseHero SectionIntegrations SectionLogo CloudMarketing FooterMarketing HeaderMarketing SectionNewsletter SectionPricing SectionStats SectionSteps SectionTeam SectionTestimonials SectionTimeline SectionVideo Section
Blocks
Admin Dashboard PageAdmin ShellAI Chat PageAPI Keys PageAutomation Builder PageCheckout PageCRM Contact PageCRM Pipeline PageError PagesInbox PageInvoice PageKPI DashboardListing Detail PageLogin PageMarketplace Home PageMarketplace Search PageMarketplace ShellMobile App HomeOnboarding FlowOrder History PagePost Listing WizardPricing PageProfile PageRegister PageSettings PageUsers Admin Page
Templates
About PageAcademy PageAccessibility PageAffiliate PageAgency PageAI Product PageAppointment Booking PageBlog PageBlog Post PageBug Bounty PageCareers PageChangelog PageCommunity PageCompare PageContact PageCustomer Story PageCustomers PageDemo Booking PageDevelopers PageDocs Home PageDownload PageEnterprise PageEvents PageExperts PageFAQ PageFeature PageGlossary PageHelp Article PageHelp Center PageHome Services PageImpact PageIntegration Detail PageIntegrations PageJob Detail PageLanding PageLaunch PageLegal PageManifesto PagePortfolio PagePress PageProduct Tour PagePromo PageReal Estate PageReferral PageResearch Report PageRestaurant PageRoadmap PageROI Calculator PageSecurity PageSolutions PageStartups PageStatus PageStorefront PageSwitch PageTemplate Gallery PageTravel PageWaitlist PageYear in Review Page
Hooks & Utilities
AI ChatChart kitCommerceDate utilsFile exportFile typesFiltersForm validationHapticsInvoicingMotion presetsNavigationNumber formatRelative timeRomanian locationsSpreadsheetText matchTonesUIProvideruseClipboarduseConsentuseControllableStateuseCooldownuseDebounceuseKeyboardInsetuseLocaleuseLongPressuseMediaControlsuseMediaQueryuseOverflowItemsusePersistedStateuseScrollEdgesuseScrollStateuseSelectionuseShortcutuseStickToBottom
GalleryTheme

Tables & Lists

Task List

Tables & Lists

Task List React component for Tailwind CSS v4

TableVirtual List
Live props
Appearance
size
accent
surfaceColor
textColor
doneTextColor
radius
checkColor
Behavior
strike
reorder
Content
completedLabel
reopenedLabel
Code
import { TaskList } from "@/components/ui/task-list"

<TaskList />
  1. Home
  2. Components
  3. Tables & Lists
  4. Task List
Free

Task List React component for Tailwind CSS v4

v1.0.1·Updated in 1.2.1

A React to-do list: a checklist that strikes out completed tasks and moves them to the bottom, with each row also exported as TaskItem.

Click or tap a row to toggle it. Ticking fills the circle and draws a check, a line strikes through the label, the row gives a little flick, then it springs down to join the finished tasks at the bottom. Unticking runs the same road backwards and brings the row back up. Rows are real checkboxes, so Tab and Space or Enter work too.

Task List is a free React component in the React table and list components category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add task-list, together with Motion presets and UIProvider and the npm package motion.

Add to a project

Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup

npx wingo-ui@latest add task-list

Usage

Import TaskList from @/components/ui/task-list.

"use client"

import { TaskList } from "@/components/ui/task-list"

export function Demo() {
  return (
    <TaskList
      defaultTasks={[
        { id: "ship", label: "Ship a new component to the registry", done: true },
        { id: "preview", label: "Record a preview for the gallery" },
        { id: "star", label: "Star the repository" },
      ]}
    />
  )
}

// one row on its own, no list around it (see TaskItem under Parts):
// <TaskItem label="Star the repository" size="sm" onCheckedChange={setDone} />

Props

  • sizedefault "md"
    "sm" | "md" | "lg"

    Row size. Text, circle, padding and radius all scale together, and the circle always matches one line of the label.

  • accentdefault "#FF5F2E"
    string

    Any CSS color for the filled circle and the focus ring. The strike and the faded text stay grey.

  • surfaceColordefault "auto"
    string

    Fill of each row card, any CSS color. Auto is white on light pages and #1F1F1F on dark ones.

  • textColordefault "auto"
    string

    Color of open task labels, any CSS color. Auto is a near black or near white that follows the theme.

  • doneTextColordefault "auto"
    string

    Color of finished task labels and of the strike line, any CSS color. Auto is a mid gray tuned per theme.

  • radiusdefault "md"
    "none" | "sm" | "md" | "lg" | "full"

    Corner radius of each row card: square, 4px tighter, the original 10 / 14 / 16px per size, 6px rounder, or a pill.

  • checkColordefault "#ffffff"
    string

    Any CSS color for the tick drawn inside the filled circle.

  • strikedefault true
    boolean

    Draws a line through finished labels. Off, they only fade to doneTextColor.

  • reorderdefault true
    boolean

    Springs finished tasks down to the bottom of the list, and back up when reopened. Off, every row stays where it is.

  • completedLabeldefault "completed"
    string

    Announced after a task label when it is ticked, e.g. "finalizat".

  • reopenedLabeldefault "reopened"
    string

    Announced after a task label when it is unticked.

  • tasks
    Task[]

    The rows to show, each one an id, a label, and an optional done flag. Pass this with onTasksChange to drive the list yourself.

  • defaultTasksdefault "[]"
    Task[]

    The rows to start with when you are not driving the list. The list tracks which ones are done on its own.

  • onTasksChange
    (tasks: Task[]) => void

    Called with the full list every time a row is ticked or unticked.

  • className
    string

    Extra classes merged onto the root element (data-slot="task-list"); other ul props are spread onto it too.

Parts

  • TaskItem

    component

    One row on its own, no list around it: a checkbox button that ticks, strikes and flicks. The list renders one per task. Takes button props.

    • label*
      string

      The task text.

    • checked
      boolean

      Controlled state; pair it with onCheckedChange.

    • defaultCheckeddefault false
      boolean

      Starting state when uncontrolled.

    • onCheckedChange
      (checked: boolean) => void

      Called on every toggle.

    • sizedefault "md"
      "sm" | "md" | "lg"

      Same scale as the list.

    • radiusdefault "md"
      "none" | "sm" | "md" | "lg" | "full"

      Corner radius of the card.

    • accentdefault "#FF5F2E"
      string

      Fill of the ticked circle and the focus ring.

    • checkColordefault "#ffffff"
      string

      Color of the tick.

    • surfaceColordefault "auto"
      string

      Card fill; auto is white light, #1F1F1F dark.

    • textColordefault "auto"
      string

      Label color while open.

    • doneTextColordefault "auto"
      string

      Label color once done.

    • strikedefault true
      boolean

      Draws the line through a finished label.

    • onSettled
      () => void

      Fires once the tick, strike and flick have finished.

    • onReverted
      () => void

      Fires once the untick has finished.

  • Task

    type

    One entry of tasks: { id, label, done? }.

Examples

Onboarding checklist

Controlled with tasks and onTasksChange, so the header can count what is done and fill a progress bar.

Keep the order

reorder and strike off: ticked rows stay in place and the label dims without a line; green accent, pill-shaped rows.

A single TaskItem

Each row is exported as TaskItem: label, checked or defaultChecked with onCheckedChange, size and accent. onSettled and onReverted fire when its animation has finished.

Dependencies

motionmotionui-config

Files

  • components/ui/task-list.tsx

FAQ

Is the React Task List component free?

Yes. The source is free and needs no account: copy it from the Code tab or install it with the CLI.

How do I install Task List?

Run npx wingo-ui@latest add task-list. It also adds the Wingo UI items it builds on (Motion presets and UIProvider) and the npm package motion. With shadcn, run npx shadcn@latest add https://wingo-ui.com/r/task-list.json.

See also

ListCheckboxKanbanProgressSteps

More React table and list components

Virtual ListData TableDeal PipelineAudit LogEditable GridMembers table
All 11 React table and list components
PreviousTableNext Virtual List