Measured entry

originui-comp-150

inputminimal-flat

A client-side checkbox styled as a compact sun and moon toggle. It ships as a copied TSX registry component and keeps only local React state, so it does not change or persist the application theme. It depends on React hooks, Lucide icons, and Tailwind-style utilities plus shadcn-like color tokens.

Specimen
Harness screenshot of originui-comp-150 at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of originui-comp-150 at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of originui-comp-150 at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for originui-comp-150
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal18.3 KB (83.7 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 617ms
error during build:
[vite]: Rollup failed to resolve import "lucide-react" from "<sandbox>re-abd9a40648e6/src/cut/components/ui/comp-150.tsx".

Verdict

A tidy visual starter that builds, mounts, and stays contained across the tested layouts, but it is only a local-state demo. Wire it to real theme state and fix the prohibited ARIA attribute before treating it as production-ready.

Use it if

  • You want a compact icon control as the starting point for an existing theme switcher.
  • Your project already provides Lucide icons and the utility classes and color tokens used by the component.
  • You are prepared to connect its local checkbox state to your application theme provider.

Skip it if

  • You need a complete dark-mode solution with persistence and document-level theme changes.
  • You need an accessibility-clean component without first correcting the prohibited ARIA usage reported on its label.
  • Your styling stack does not support peer and group state variants or shadcn-style design tokens.

Install

Installation record for originui-comp-150
Declared dependenciesnone declared
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add React and lucide-react, then provide equivalents for the utility classes, screen-reader-only input treatment, peer and group checked-state variants, focus styles, and the background, foreground, input, accent, and ring color tokens. Connect the checkbox to your theme system.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

License
MIT
Record published
2026-08-13

Alternatives

Other published entries for the input pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.