Kinetik UI

Ink Check

.md

A checkbox whose tick is inked in one stroke while the box fills, with an optional strike-through label.

v1.0.0Live on webreact-native-reanimatedreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add ink-check

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/ink-check.json

Install manually

  1. Install dependencies
    npx expo install react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/ink-check.tsx
    View source files

Usage

import { InkCheck } from '@/components/kinetik/ink-check';

<InkCheck
  label="Book the flights"
  description="Lisbon, 14 to 21 June"
  checked={booked}
  onCheckedChange={setBooked}
/>;

Set strike for to-do lists: the label is struck through and greys a little once it is checked.

When to use

  • Lists of independent choices: settings, filters, a to-do or packing list.
  • Consent and agreement lines in forms.

When not to use

  • A setting that takes effect immediately. Use a switch, such as Pulse Toggle.
  • Choosing one option from a set. Use Choice Cards or radio buttons.

Notes

  • The tick is drawn by two plain views rather than a canvas, so a screen with fifty checkboxes costs no more than fifty small views.
  • The tick is drawn in onAzure. If you pass a light color, check the contrast of the tick against it.
  • The label stays on one line so the strike-through can follow it; put detail in description.
  • With reduced motion the box and tick change at once.

Props

InkCheckProps

PropTypeDefaultDescription
labelrequiredstring—The line beside the box. It names the checkbox for screen readers.
checkedrequiredboolean—
onCheckedChangerequired(checked: boolean) => void—
descriptionstring—A quieter line under the label.
strikebooleanfalseStrike the label through when checked, as in a to-do list. Defaults to false.
colorstring—Box fill when checked. Defaults to the theme azure.
hapticsbooleantrueA tick as it checks. Defaults to true.
disabledbooleanfalse
testIDstring—
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
Plain views: the tick is two rotated bars whose widths grow. No canvas, so a long list of them stays cheap. Nothing runs at rest.
Measured

Pixel 9 emulator, API 35, release build · interaction median 1.15× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 147 MB app memory

Real-device measurement pending.

Accessibility

Reduced motion
The box fills and the tick appears at once; the strike-through appears without sweeping.
Screen readers
A checkbox named by its label, with the description as its hint and a checked state.
Touch target
The whole row is the target, at least 44 pt tall.

Source files

components/kinetik/ink-check.tsx is in the Code tab of the preview above.