Measured entry

kibo-snippet

cardminimal-flat

A client-side React card for presenting code variants as tabs with a clipboard action and copied-state feedback. It ships as shadcn registry source rather than a standalone package, composing local Button and Tabs components, the cn utility, Tailwind theme classes, Lucide icons, and Radix-backed UI primitives.

Specimen
Harness screenshot of kibo-snippet at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of kibo-snippet at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of kibo-snippet 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 kibo-snippet
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal41.0 KB (106.4 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 1m 35s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/index.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A focused snippet card that builds and mounts cleanly in its intended environment, with no observed accessibility or overflow issues. It needs a shadcn-style setup, so it is a good source component for an existing design system but not a standalone drop-in.

Use it if

  • You need compact, tabbed snippets for commands or code variants.
  • Your app already uses shadcn aliases, theme tokens, Button, Tabs, and the cn helper.
  • You want composable header, trigger, content, and copy controls that can be rearranged locally.

Skip it if

  • You need a drop-in package that does not rely on local shadcn components and path aliases.
  • You need syntax highlighting, line numbers, or rich code-block behavior out of the box.
  • You need long code to wrap or scroll instead of being truncated.
  • You need the copy control to remain visible on touch and keyboard interaction without changing its hover-only styling.

Install

Installation record for kibo-snippet
Declared dependencieslucide-react, radix-ui
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

A non-shadcn project must add the Button and Tabs implementations, the cn class-merging helper, matching import aliases, Tailwind utilities and theme tokens, Lucide React, and the Radix-backed tabs dependency. It also needs client-side React rendering and clipboard access for copying.

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-14

Alternatives

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