Skip to content

Wrapper

Hand-drawn Card

The Wrapper component provides a container with sketchy borders and backgrounds. It supports various fill styles and roughness levels.

Terminal window
npx skeci-ui add wrapper
import { Wrapper } from '@/components/ui/wrapper';
<Wrapper>
<h3 className="text-lg font-bold">Hello World</h3>
<p>This is a hand-drawn card container.</p>
</Wrapper>

Fill Styles

Zigzag Fill

A playful yellow zigzag pattern.

Cross-hatch

A structured green cross-hatch.

Custom Roughness & Stroke

Extra Messy

High roughness and bowing.

Thick Blue

Custom stroke color and width.

PropTypeDefaultDescription
paddingnumber | string24Padding inside the wrapper.
roughnessnumber1.5How sketchy the lines look.
bowingnumber1How much the lines curve.
strokestring'#333333'Border color.
strokeWidthnumber1.5Border thickness.
fillstring'transparent'Background color.
fillStylestring'solid'Background fill pattern (solid, hachure, zigzag, etc).
animatedbooleanfalseWhether to enable CSS transitions.
interactivebooleantrueWhether to enable hover effects.