Takeoff Onboarding
ASecurity`Onboarding` is a product tour: step cards that point at parts of the page behind a dimmed overlay with a spotlight cutout, or sit centered when a step has no target. Behavior — steps, positioning, scroll into view, overlay, focus and keyboard — is Spar's `Tour`; the card follows the Takeoff design. **When to use:** a first-run or "what is new" walkthrough of an existing screen, or a short welcome sequence. Not this — a multi-step form is `Stepper`; one hint on one control is `Tooltip` / `Pop...
- 3 stars
- 0 votes
- 0 copies
- 0 views
- Added December 4, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add turkishtechnology/takeoff-v2 --skill takeoff-onboarding --agent claude-codeAre you the author of Takeoff Onboarding?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/turkishtechnology-takeoff-onboarding)---
name: takeoff-onboarding
description:
'Build an Onboarding tour (product tour / guided walkthrough / feature
coachmarks: step cards that point at elements behind a dimmed spotlight
overlay, or centered welcome / "what is new" cards) — the Onboarding from
@takeoff-ui/react-spar (Takeoff UI / Spar React). Trigger when adding a
product tour, a first-run walkthrough, spotlight or highlight of a feature, a
step-by-step tooltip tour, or a welcome modal with steps. Use this skill
WHENEVER building, adding, importing, styling, or fixing an Onboarding / tour
in a React app that uses @takeoff-ui/react-spar / Takeoff / Spar. Not for a
multi-step form or checkout progress — use Stepper there; not for a single
hint — use Tooltip or Popover.'
---
# Onboarding — @takeoff-ui/react-spar
`Onboarding` is a product tour: step cards that point at parts of the page
behind a dimmed overlay with a spotlight cutout, or sit centered when a step has
no target. Behavior — steps, positioning, scroll into view, overlay, focus and
keyboard — is Spar's `Tour`; the card follows the Takeoff design.
**When to use:** a first-run or "what is new" walkthrough of an existing screen,
or a short welcome sequence. Not this — a multi-step form is `Stepper`; one hint
on one control is `Tooltip` / `Popover`; a blocking decision is `Dialog`.
## Setup
Requires the Takeoff provider + token CSS mounted once at the app root (see the
`takeoff-ui` skill or the installation docs). Then import:
```tsx
import { Onboarding } from '@takeoff-ui/react-spar';
```
## Compound parts
- `Onboarding` — state-only root (no DOM). `open` / `defaultOpen` /
`onOpenChange(open, reason)`, `active` / `defaultActive` / `onActiveChange`,
`onFinish`, `modal`, `keyboardNavigation`, `closeOnEscape`, `type`, `labels`.
- `Onboarding.Step` — one card. `target` (selector, element, ref or function;
none → centered), `side`, `align`, `sideOffset`, `scrollIntoView`. Steps run
in mount order.
- `Onboarding.Overlay` — dimmed page with a spotlight hole; `padding` (4),
`radius` (8), `allowTargetInteraction`.
- `Onboarding.Content` — the card (`role="dialog"`), portalled.
- `Onboarding.Arrow` — pointer toward the target; nothing on centered steps.
- `Onboarding.Header` (`headerType`), `Onboarding.Icon`, `Onboarding.Title`,
`Onboarding.Close` (icon-only).
- `Onboarding.Body`, `Onboarding.Media` (image area), `Onboarding.Description`.
- `Onboarding.Footer` (`footerType`), `Onboarding.Progress` (`type`),
`Onboarding.Actions`, `Onboarding.Prev` (hidden on the first step),
`Onboarding.Next` (Finish on the last step).
## Basic usage
```tsx
const [open, setOpen] = useState(!user.hasSeenTour);
<Onboarding
open={open}
onOpenChange={(next, reason) => {
setOpen(next);
if (!next) markTourSeen(reason);
}}
>
<Onboarding.Overlay />
<Onboarding.Step target="#search">
<Onboarding.Content>
<Onboarding.Arrow />
<Onboarding.Header>
<Onboarding.Icon>
<FlashIconOutlinedRounded />
</Onboarding.Icon>
<Onboarding.Title>Search flights</Onboarding.Title>
<Onboarding.Close />
</Onboarding.Header>
<Onboarding.Body>
<Onboarding.Description>
Find any flight by number, route or date.
</Onboarding.Description>
</Onboarding.Body>
<Onboarding.Footer>
<Onboarding.Progress />
<Onboarding.Actions>
<Onboarding.Prev />
<Onboarding.Next />
</Onboarding.Actions>
</Onboarding.Footer>
</Onboarding.Content>
</Onboarding.Step>
{/* more steps */}
</Onboarding>;
```
## Examples
### Centered welcome card
```tsx
<Onboarding.Step>
<Onboarding.Content>
<Onboarding.Header>
<Onboarding.Title>Welcome aboard</Onboarding.Title>
<Onboarding.Close />
</Onboarding.Header>
<Onboarding.Body>
<Onboarding.Media>
<img src={hero} alt="" />
</Onboarding.Media>
<Onboarding.Description>
What is new in this release.
</Onboarding.Description>
</Onboarding.Body>
<Onboarding.Footer>
<Onboarding.Progress type="dot" />
<Onboarding.Actions>
<Onboarding.Next />
</Onboarding.Actions>
</Onboarding.Footer>
</Onboarding.Content>
</Onboarding.Step>
```
### Ref target, let the user click it
```tsx
const exportRef = useRef<HTMLButtonElement>(null);
<Onboarding.Overlay allowTargetInteraction />
<Onboarding.Step target={exportRef} side="left">…</Onboarding.Step>
```
### Turkish labels for the whole app
```tsx
<TakeoffSparProvider
theme={{
components: {
Onboarding: {
defaultProps: {
labels: {
next: 'İleri',
finish: 'Bitir',
prev: 'Geri',
close: 'Turu kapat',
progressText: 'Adım {current}/{total}',
progress: 'Adım {current} / {total}',
},
},
},
},
}}
>
```
## Key props
### `Onboarding` (root)
| Prop | Type | Default | Notes |
| --------------- | ------------------------------ | --------- | -------------------------------------------------------------- |
| `open` | `boolean` | - | Controlled open state. |
| `onOpenChange` | `(open, reason?) => void` | - | `reason`: `finish` \| `close` \| `escape` \| `programmatic`. |
| `active` | `number` | - | Controlled step index. |
| `defaultActive` | `number` | `0` | Uncontrolled tours restart here on every open. |
| `onFinish` | `() => void` | - | Next pressed on the last step. |
| `modal` | `boolean` | `true` | `aria-modal` + focus trap. |
| `type` | `'basic' \| 'light' \| 'dark'` | `'basic'` | Card surface. |
| `labels` | `Partial<OnboardingLabels>` | English | `next`, `finish`, `prev`, `close`, `progressText`, `progress`. |
### Parts
| Part | Prop | Notes |
| ---------------------- | ------------------------------------------------- | -------------------------------------------------------------------- |
| `Onboarding.Step` | `target`, `side`, `align` | No / missing target → centered modal layout. |
| `Onboarding.Overlay` | `padding`, `radius`, `allowTargetInteraction` | Leave it out for a non-blocking tour. |
| `Onboarding.Header` | `headerType` | `basic` \| `divided` \| `light` \| `dark` \| `primary`. |
| `Onboarding.Footer` | `footerType` | Same values as `headerType`. |
| `Onboarding.Progress` | `type` | `text` \| `slider` (default) \| `dot` \| `stepper`. |
| `Onboarding.Content` | `container`, `onOpenAutoFocus`, `onEscapeKeyDown` | Portal target; `preventDefault()` keeps focus / keeps the tour open. |
| `Onboarding.Prev/Next` | `variant`, `appearance`, `as` | Takeoff `Button` props; children may be `({ isLast })`. |
Full props, events, data attributes & type definitions: see
`references/full-docs.md`.
## Accessibility
- Every step card needs an `Onboarding.Title`: it names the dialog.
- Focus moves to each card when it opens and returns to where it was when the
tour closes. Escape closes; ArrowRight / ArrowLeft change steps.
- `Onboarding.Close` is icon-only and named by `labels.close`;
`Onboarding.Progress` is one image named by `labels.progress`.
- Don't put the only copy of important information in a tour: users skip it.
## Reference
- Full component docs (Copy page): `references/full-docs.md`
- Live docs: https://v2.takeoffui.com/docs/components/onboarding
- Source: `packages/react-spar/src/components/onboarding/`
- Spar primitive: https://v2.takeoffui.com/headless/docs/Components/Tour
Files in this skill
- SKILL.md
- references/full-docs.md
Attribution
Related skills
View all in design →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.