Skip to content
Back to skills

Takeoff Ui

ASecurity

React-first wrapper layer over the headless **Spar** primitives, styled with **Takeoff** design tokens. React 19 only. This skill is the shared foundation: install, provider, theming, the styling model, and a map to the per-component skills. Migrating from Takeoff UI v1? Use `migrate-takeoff-v1` for the inventory, setup, v1-to-v2 mapping, and gap decisions. **When to use:** project setup, provider/token wiring, theming, the slot/customization contract, or picking the right component. For a sp...

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added December 4, 2026
developmentgoshellbashreactapi

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 7 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add turkishtechnology/takeoff-v2 --skill takeoff-ui --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Takeoff Ui?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Takeoff Ui
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/turkishtechnology-takeoff-ui/badge)](https://www.skillsdirectory.com/skills/turkishtechnology-takeoff-ui)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: takeoff-ui
description:
  'Setup, conventions, and component map for @takeoff-ui/react-spar (Takeoff UI
  / Takeoff Spar) — the React 19 component library of headless Spar primitives
  styled with Takeoff design tokens. Use this skill WHENEVER starting or wiring
  a project with @takeoff-ui/react-spar: installing packages, mounting
  TakeoffSparProvider, importing the token CSS, theming/color mode, the compound
  + slot (className/classNames/slotProps/data-slot) customization model, or when
  unsure which Takeoff component to reach for. Pair it with the per-component
  takeoff-<name> skills (takeoff-button, takeoff-input, takeoff-dialog, …) for
  component-specific APIs and examples.'
---

# Takeoff UI (`@takeoff-ui/react-spar`)

React-first wrapper layer over the headless **Spar** primitives, styled with
**Takeoff** design tokens. React 19 only. This skill is the shared foundation:
install, provider, theming, the styling model, and a map to the per-component
skills.

Migrating from Takeoff UI v1? Use `migrate-takeoff-v1` for the inventory, setup,
v1-to-v2 mapping, and gap decisions.

**When to use:** project setup, provider/token wiring, theming, the
slot/customization contract, or picking the right component. For a specific
component's props and examples, jump to its `takeoff-<name>` skill.

## Install (3 steps, no build config)

```bash
pnpm add @takeoff-ui/react-spar @takeoff-design/tokens
# @takeoff-design/tokens is a peer dependency; @turkish-technology/spar comes in automatically.
```

1. **Token CSS** — import once at the app entry (`main.tsx`, `app/layout.tsx`,
   global CSS):

```ts
import '@takeoff-design/tokens/css/default/theme.css';
```

2. **Provider** — wrap the tree. Renders no DOM; writes `data-theme` (+ optional
   `lang`) to `<html>` and distributes component defaults via context:

```tsx
import { TakeoffSparProvider } from '@takeoff-ui/react-spar';

export function App({ children }) {
  return (
    <TakeoffSparProvider colorMode="light">{children}</TakeoffSparProvider>
  );
}
```

3. **Use any component** — plain imports, no Tailwind preset / Sass / loader
   required:

```tsx
import { Button } from '@takeoff-ui/react-spar';

<Button variant="primary">Start building</Button>;
```

React 18 throws at runtime — pin React 19. Icons ship separately in
`@takeoff-icons/react`
(`import { StarIconOutlinedRounded } from '@takeoff-icons/react/star'`).

## Customization model (applies to every component)

Compound components: the parent owns state/behavior, child parts keep semantic
DOM + a11y wiring. Every DOM-rendering part exposes these layers (lowest →
highest precedence):

- `className` — appends a class to the part's **root** slot.
- `classNames={{ slot: '…' }}` — append classes by named slot.
- `slotProps={{ slot: { … } }}` — HTML attributes by named slot
  (shallow-merged).
- Provider `components` entries — shared defaults + slot customization.

Stable selectors for CSS: canonical `tk-*` recipe classes, `data-slot` (e.g.
`root`, `icon`, `indicator`), and documented state attributes (`data-variant`,
`data-size`, `data-disabled`, `data-invalid`, …). Only rely on attributes listed
in a component's **Data attributes** table — internal DOM is not a styling
contract. Slot names differ per part; check the component's API table rather
than guessing. See `references/composition-styling.md`.

## Theming

`colorMode="light" | "dark"`, branded token bundles, and shared component
defaults flow through the provider. See `references/theming.md`.

## Component map → per-component skills

Each component has its own `takeoff-<name>` skill with import, examples, key
props, a11y, and a verbatim Copy-page doc in its `references/`.

**Actions & form controls:** `takeoff-button` · `takeoff-checkbox` ·
`takeoff-color-picker` (color field: area, hue/alpha sliders, typed channels,
swatches) · `takeoff-currency-input` (amount with a currency picker) ·
`takeoff-input` · `takeoff-label` · `takeoff-otp-input` (one-time code, one box
per character) · `takeoff-phone-input` (phone number with a country picker) ·
`takeoff-radio` · `takeoff-rating` · `takeoff-select` · `takeoff-slider` ·
`takeoff-split-button` (main action joined to a menu of related actions) ·
`takeoff-switch` · `takeoff-time-picker` (inline time panel: unit columns or a
dial) · `takeoff-toggle-button-group` · `takeoff-upload` (file control: browse
trigger, dropzone, per-file list) · `takeoff-field` (form-field wrapper: label,
description, and error context for nested controls)

**Navigation & disclosure:** `takeoff-accordion` · `takeoff-anchor` (in-page
table of contents that follows the scroll) · `takeoff-breadcrumb` ·
`takeoff-context-menu` (right-click / long-press menu at the pointer) ·
`takeoff-dropdown` · `takeoff-header` (top app bar: brand, nav links, search,
actions; collapses to a menu) · `takeoff-mega-menu` (nav whose items open large
panels: grouped links, category sidebar, cards) · `takeoff-pagination` ·
`takeoff-sidebar` (app-shell side navigation: groups, submenus, collapsible
rail) · `takeoff-stepper` · `takeoff-tabs` · `takeoff-tree-view` (hierarchical
list: expand/collapse, selection, cascading checkboxes, lazy children)

**Feedback & status:** `takeoff-alert` · `takeoff-avatar` (picture with
initials/icon fallback, status badge, `+N` group) · `takeoff-badge` ·
`takeoff-chip` · `takeoff-empty-state` (illustration, title and actions where
content is missing) · `takeoff-progress` · `takeoff-skeleton` ·
`takeoff-spinner` · `takeoff-tooltip` · `takeoff-toast` ·
`takeoff-globe-spinner` (branded circular loader) · `takeoff-flight-loader`
(branded loading card)

**Content & overlays:** `takeoff-calendar` (inline month grid: single, range,
multiple) · `takeoff-card` · `takeoff-carousel` (slides with arrows, indicators,
autoplay) · `takeoff-chat` (messaging: conversation log, read receipts, timed
edit/delete, conversation list) · `takeoff-dialog` · `takeoff-divider` ·
`takeoff-drawer` · `takeoff-onboarding` (product tour: spotlight steps over a
dimmed page, or centered cards) · `takeoff-popconfirm` (confirm bubble with
async confirm) · `takeoff-popover` · `takeoff-table` · `takeoff-timeline`
(read-only event sequence along a line)

## Patterns → composition skills

Some things are composed rather than shipped. They have a skill of their own,
but no component behind them.

**`takeoff-datepicker`** — a date picker is `Popover` + `Calendar`; there is no
`DatePicker` component. `useDatePicker` supplies the text/`Date` bridge for a
typable field. Covers the masked-field variant, ranges, presets, localization
across both halves, and the two styling hooks the composition needs.

## Forms

`Field` + the controls integrate with React Hook Form and TanStack Form.
Patterns in `references/forms-react-hook-form.md` and
`references/forms-tanstack-form.md`.

## Reference

- Installation: `references/installation.md`
- Components index: `references/components-index.md`
- Composition & styling: `references/composition-styling.md`
- Theming: `references/theming.md`
- Live docs: https://v2.takeoffui.com/docs/
- LLM corpus: https://v2.takeoffui.com/llms.txt (and `/llms-full.txt`)
- Source: `packages/react-spar/`

Files in this skill

  • SKILL.md7.1 KB
  • references/components-index.md7 KB
  • references/composition-styling.md3.2 KB
  • references/forms-react-hook-form.md16.5 KB
  • references/forms-tanstack-form.md20.4 KB
  • references/installation.md2.7 KB
  • references/theming.md2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.