TourKit
@tour-kit/checklistsComponents

Components

Pre-styled checklist components with shadcn/ui patterns: Checklist, ChecklistTask, ChecklistProgress, and ChecklistLauncher

Components

Pre-built, accessible checklist components styled with Tailwind CSS and CVA variants.

Available Components

Quick Example

import {
  ChecklistProvider,
  Checklist,
  ChecklistTask,
  ChecklistProgress,
} from '@tour-kit/checklists';

const checklist = {
  id: 'onboarding',
  title: 'Get Started',
  tasks: [
    { id: 'step1', title: 'Create account' },
    { id: 'step2', title: 'Verify email' },
    { id: 'step3', title: 'Complete profile' },
  ],
};

function App() {
  return (
    <ChecklistProvider checklists={[checklist]}>
      <Checklist
        checklistId="onboarding"
        showHeader
        showProgress
      />
    </ChecklistProvider>
  );
}

Styling

All components support:

  • CVA variants for consistent styling
  • Tailwind CSS classes via className prop
  • asChild pattern for composition (Radix/Base UI compatible)

Variant System

<Checklist variant="default" size="default" />
<ChecklistTask variant="default" size="sm" />
<ChecklistProgress variant="default" showPercentage />

Composition

Components are designed to be composed together:

<ChecklistPanel checklistId="onboarding">
  <Checklist checklistId="onboarding">
    <ChecklistProgress />
    <ChecklistTask taskId="step1" />
    <ChecklistTask taskId="step2" />
  </Checklist>
</ChecklistPanel>

Accessibility

All components follow WCAG 2.1 AA guidelines:

  • Proper ARIA labels and roles
  • Keyboard navigation
  • Focus management
  • Screen reader announcements

On this page