language-lit

Material 3 Checkbox

Forms

About

A native checkbox input styled with Material 3 Expressive's container, outline, checkmark and state-layer motion, supporting controlled/uncontrolled and indeterminate states.

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

Code

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

Usage.tsx

import { Checkbox } from "@/components/ui/checkbox";

export default function CheckboxDemo() {
  return (
    <div className="flex min-h-[240px] w-full items-center justify-center bg-[var(--background)] text-[var(--foreground)]">
      <label className="flex items-center gap-3 text-base">
        <Checkbox name="preferences" value="marketing" defaultChecked />
        Send me product updates
      </label>
    </div>
  );
}

More by language-lit

View all
  • Material 3 Switch

    Material 3 Switch

  • Material Text Field

    Material Text Field

  • Circular Progress

    Circular Progress

More in Forms

View all
  • Premium Auth

    Premium Auth

    593
  • Contact Form

    Contact Form

    28
  • Form

    Form

    4
  • Login 1

    Login 1

    70
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form [react-aria-components]

    Form [react-aria-components]

    19