mischief-ui
v0.8.13
Published
A playful, high-utility shadcn registry: PDF, DOCX and JSON viewers, redaction and bounding boxes, agent chat with tool calls, data tables, command palettes, OTP inputs, and shader fields.
Downloads
5,402
Maintainers
Readme
mischief-ui
Good interfaces deserve a little mischief.
Playful, production-ready React components and blocks built with Base UI, Motion, Tailwind CSS, and shadcn theme tokens. Every component is a separate entry point, and anything heavier than React is an optional peer, so installing this package pulls none of them.
See the full list at https://ui.tinkererslabs.com.
Install from npm
npm install mischief-uiImport mischief-ui/styles.css once in your Tailwind CSS entry file so Tailwind can find the component classes:
@import "tailwindcss";
@import "mischief-ui/styles.css";Tailwind does not scan node_modules, so point it at this package or the
components arrive with none of their classes generated:
@import "tailwindcss";
@source "../node_modules/mischief-ui";Then import a component from its direct entry:
import { ElasticSlider } from "mischief-ui/elastic-slider"
export function Volume() {
return <ElasticSlider label="Volume" defaultValue={68} />
}A root import also works, and tree-shakes to the same bytes:
import { HoldButton } from "mischief-ui"It carries the 56 components that resolve with nothing but React installed. The other seven are reachable only through their own entry, because a barrel holding them would drag in an optional peer and fail for everyone who had not installed it: Magnetic Tabs, Elastic Slider, Shift Button, and Image Gallery need Base UI, Impossible Checkbox and Floating Index need Motion, and Markdown Blocks needs react-markdown. Reaching for one of those at the root is a compile error naming the missing export, not a crash at run time.
Importing mischief-ui/signature-footer also keeps that server-safe component
out of a client boundary.
File validation must be repeated on the server. The browser checks only help people correct a selection before upload.
For full source ownership, install through the shadcn registry instead:
npx shadcn@latest add Tinkerers-Labs/mischief-ui/elastic-sliderSee the live components and complete docs at https://ui.tinkererslabs.com/.
