hemingtsai

ZCheckbox

Forms

About

A square checkbox with a quiet indeterminate (mixed) state, label and secondary hint text, for forms that need an explicit opt-in or a parent "select all" control.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds ZCheckbox to your project and fits it to your theme.

Code

How ZCheckbox is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import * as React from "react";
import ZCheckbox from "@/components/ui/zcheckbox";

export default function ZCheckboxDemo() {
  const [autoStart, setAutoStart] = React.useState(true);

  return (
    <ZCheckbox
      checked={autoStart}
      onCheckedChange={setAutoStart}
      label="开机自动启动"
      hint="仅在登录后生效"
    />
  );
}

More by hemingtsai

View all
  • Floating Action Button

    Floating Action Button

  • Button Group

    Button Group

More in Forms

View all
  • Premium Auth

    Premium Auth

    524
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    73
  • Form

    Form

    16
  • Login 1

    Login 1

    53
  • Book A Demo 3

    Book A Demo 3

    89
  • Hand-Drawn Checkbox

    Hand-Drawn Checkbox

    48
  • Login Card

    Login Card

    6