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 CheckboxGroupDemo() {
  const [toppings, setToppings] = useState<string[]>(["cheese"]);

  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.Group label="Toppings" value={toppings} onChange={setToppings}>
        <Checkbox value="cheese">Cheese</Checkbox>
        <Checkbox value="olives">Olives</Checkbox>
        <Checkbox value="mushrooms">Mushrooms</Checkbox>
      </Checkbox.Group>
      <span>Value: {JSON.stringify(toppings)}</span>
    </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

    500
  • Login 2

    Login 2

    7
  • Authentication Card

    Authentication Card

    47
  • Login 1

    Login 1

    52
  • Contact Card

    Contact Card

    1K
  • Login Form

    Login Form

    6
  • Form

    Form

    16
  • Book A Demo 3

    Book A Demo 3

    83