Migrate from 0.11 to 0.12
This page is for apps using Blackwork 0.11. New projects can skip it and start from Getting Started.
Upgrade Blackwork and Tailwind CSS first:
pnpm add blackwork@^0.12 tailwindcss@^4If your app uses blackwork/form, also install TanStack Form:
pnpm add @tanstack/react-formComposition
Triggers such as DialogTrigger and SheetTrigger still accept asChild. Pass a real <button> or Button as the child. Do not wrap the trigger in a non-button element just for styling.
Button still supports loading. SheetContent still supports closeButtonVisible.
Forms
blackwork/form is built on TanStack Form.
- Install
@tanstack/react-form. - Remove
react-hook-formif you only used it through Blackwork. - Use
useAppForm,Form, andFieldGroupas shown in Form.
Field layout (Field, FieldLabel, FieldGroup) can still be used without any form library.
Icons
The blackwork/icons subpath is removed. Import generic icons from lucide-react. See Icons for the name mapping.
Styles
Blackwork 0.12 requires Tailwind CSS v4. Remove blackwork/tailwind-config and the legacy Tailwind plugin setup, then import:
@import 'tailwindcss';
@import 'blackwork/tailwind.css';