Checkbox
A control that allows the user to toggle between checked and not checked.
Installation
bun add elia@import "tailwindcss";
@import "@aile.sh/elia/styles/elia.css";
@source "../node_modules/@aile.sh/elia";Usage
import { useState } from "react";
import { Checkbox } from "@aile.sh/elia";
export function Example() {
const [logging, setLogging] = useState(true);
return (
<div className="flex max-w-xs flex-col gap-3">
<Checkbox
label="Enable request logging"
checked={logging}
onChange={(e) => setLogging(e.target.checked)}
/>
<Checkbox label="Rotate keys monthly" defaultChecked={false} />
<Checkbox label="Legacy models (deprecated)" disabled defaultChecked />
</div>
);
}— elia design system · MIT · base · https://github.com/aile-sh/elia