TaskCheck

TaskCheck is an animated task check component for React Native and React, from the dissolve library. Checkbox that draws its check and strikes the label, then the task moves away or dissolves.

A to do row. Tap it: the box fills with a small spring, the check draws in 220 ms, the strike runs across each real line of text and the label goes muted. After a short delay the task moves to Done, or dissolves into dust from the left and the list closes up. Tap again before the delay to undo.

Install

React Native

Install the engine once per app and wrap the root layout in <DissolveProvider> (see Installation), then copy the component into components/dissolve:

npx expo install dissolve-ui @shopify/react-native-skia react-native-reanimated react-native-worklets react-native-gesture-handler expo-haptics
npx dissolve-ui add task-check --native
npx shadcn@latest add https://dissolve.rselmi.com/r/native/task-check.json

React

Needs React 19 and react-dom, nothing else: no engine, no provider, no Tailwind. Works in the Next.js App Router.

npx dissolve-ui add task-check --web
npx shadcn@latest add https://dissolve.rselmi.com/r/task-check.json

Usage

TaskCheck.tsx (React Native)
import { TaskCheck } from '@/components/dissolve/task-check';

<TaskCheck
  label={task.title}
  checked={task.done}
  onCheckedChange={(done) => update(task.id, { done })}
  after="move"
  onSettled={() => moveToDone(task.id)}
/>
TaskCheck.tsx (React)
import { TaskCheck } from '@/components/dissolve/task-check';

<TaskCheck
  label={task.title}
  checked={task.done}
  onCheckedChange={(done) => update(task.id, { done })}
  after="move"
  onSettled={() => moveToDone(task.id)}
/>

Props

PropTypeDefaultDescription
labelstringrequiredThe task. The strike follows each line it wraps to.
checkedbooleanrequiredChecked state.
onCheckedChange(checked: boolean) => voidrequiredCalled on tap.
after'stay' | 'move' | 'dissolve''stay'Once checked: nothing, onSettled so you move it to Done, or dust from the left, the gap closes, then onSettled.
settleDelaynumber900Pause before the task settles. A tap within it undoes.
onSettled() => voidCalled when the task settles: move it, or drop it after the dust.
boxSizenumber24Checkbox side.
disabledbooleanfalseTurns the tap off.
hapticsbooleantrueLight impact on check.
classNamestringOuter wrapper classes (margins, separators). This is the part that closes up.
rowClassNamestringRow classes (padding, gap).
labelClassNamestringLabel classes (size, weight). The color is animated from the tokens.

Source

Previous: UploadTile · Next: QuantityStepper · All components

dissolve is MIT licensed. Source on GitHub, package on npm. This page as markdown. For AI agents: llms.txt.