Open Source · React + TypeScript

    Build Forms & UIs
    Visually

    A complete React component system with visual form builder, theme customization lab, and production-ready code export. Built with Radix UI primitives and Tailwind CSS.

    $ npx afnoui init
    CLI

    Install Into Your Project

    Add components and forms directly to your project using the Afno UI CLI. Works with npm, pnpm, yarn, and bun.

    1

    Initialize Afno UI in your project

    $ npx afnoui init

    Sets up Tailwind CSS, CSS variables, utility functions, and the base design system.

    2

    Add UI components

    $ npx afnoui add button card dialog tabs

    Install individual components. Each component includes its source code, types, and variants.

    3

    Add specific variants (optional)

    $ npx afnoui add button/variants

    Install specific component variant styles, sizes, and configurations.

    Initialize the Form System

    $ npx afnoui form init

    Installs shared types, hooks, and utils, then one stack from the registry (default: React Hook Form with ReactHookForm / ReactHookFormField and field components). Use --tanstack, --action, or --stack tanstack|action for the other stacks. Adds Zod and the matching runtime deps (e.g. react-hook-form, @tanstack/react-form).

    Add a form template

    $ npx afnoui add forms/forms-contact

    Adds a registry form variant (under components/ui/forms/). If the form system is not installed yet, the CLI installs the stack first (default RHF; pass the same --stack / --tanstack / --action flags as with form init).

    Everything You Need

    From form building to component theming — a complete toolkit for React developers.

    Form Builder

    Powerful Form System

    JSON-driven forms with validation, conditional logic, and hydration — all configurable through a visual interface.

    4 Layouts

    Single, Multi-Tab, Wizard, Compact

    Conditional Logic

    Show/hide fields based on other field values

    Auto-Populate

    Watch fields with transform constraints

    Dependent Options

    Cascading dropdowns (Country → State)

    Form Hydration

    Load dropdown options from backend APIs

    Dual Schema

    Runtime or compile-time Zod validation

    Async & Infinite

    API-fetched and paginated field types

    Live Preview

    Test validation and submit in real-time

    How It Works

    1

    Design Visually

    Add fields, configure properties, set up conditional logic and validation rules — all through the visual builder interface.

    2

    Preview & Test

    See your form live with full validation. Test conditional visibility, dependent dropdowns, and auto-populate transforms.

    3

    Export & Ship

    Copy the generated TypeScript code into your project. Choose runtime or compile-time schema. Add hydration for backend data.

    Built With

    Next· Component framework
    TypeScript· Type safety
    Radix UI· Accessible primitives
    Tailwind CSS· Utility-first styling
    React Hook Form· Form state management
    Zod· Schema validation
    Lucide· Icon library

    Ready to Build?

    Start with the form builder, explore components, or install via CLI.