alexisroe

Checkbox

Forms

About

A monochrome checkbox for e-ink/low-refresh displays that supports standalone controlled/uncontrolled use, binding to a form, and grouping multiple checkboxes into one multi-select field.

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

Code

How 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";
import { useState } from "react";

export default function RequiredCheckboxDemo() {
  const [checked, setChecked] = useState(false);

  return (
    <div
      className="flex flex-col gap-3 p-6"
      style={{
        background: "var(--eink-color-secondary)",
        color: "var(--eink-color-primary)",
        fontFamily: "var(--eink-font-family-main)",
      }}
    >
      <Checkbox checked={checked} onChange={setChecked} required>
        Accept terms
      </Checkbox>
    </div>
  );
}

More by alexisroe

View all
  • E-Ink Progress Bar

    E-Ink Progress Bar

  • Navigation

    Navigation

  • Pill

    Pill

  • Notification

    Notification

  • Number Stepper

    Number Stepper

  • Log

    Log

  • Value Display

    Value Display

  • Last Updated

    Last Updated

More in Forms

View all
  • Premium Auth

    Premium Auth

    496
  • Authentication Card

    Authentication Card

    44
  • Login 1

    Login 1

    52
  • Login 2

    Login 2

    7
  • Form

    Form

    32
  • Card Studio

    Card Studio

    41
  • Form

    Form

    136
  • Login Card

    Login Card

    32