byDefaultHuman
Primitives

RoughCircle

Hand-drawn circle primitive for badges and controls.

A

Installation

package manager
npx shadcn add https://bydefaulthuman.fun/r/rough-circle.json

Props

PropTypeDefaultDescription
children
ReactNode
—
Content rendered inside the component.
className
string
—
Additional Tailwind classes applied to the component.
diameter*
number
—
Sets the circle diameter in pixels.
fill
string
—
Overrides the fill color.
id
string
—
Controls the `id` behavior.
stroke
string
—
Overrides the stroke color.
theme
CrumbleTheme
—
Overrides the global Crumble theme for this instance.

Accessibility

This primitive is primarily presentational. Keep the underlying content semantic and avoid relying on the sketch overlay alone to communicate meaning.

Examples

import { RoughCircle } from "@/components/crumble/primitives/rough-circle";

<RoughCircle diameter={72}>A</RoughCircle>;