Compositions
Core Primitives
Transitions
Typography
Customize
15
2
1
Installation
$ pnpm dlx shadcn@latest add @framecn/bounding-box-selector
Usage
import { BoundingBoxSelector } from "@/components/framecn/bounding-box-selector";<BoundingBoxSelector />API Reference
BoundingBoxSelector
| Prop | Type | Default |
|---|---|---|
children | ReactNode | - |
borderColor | string | "#0ea5e9" |
handleColor | string | "#0ea5e9" |
borderWidth | number | 2 |
appearAt | number | 15 |
background | string | "#fafafa" |
speed | number | 1 |
className | string | - |
fps | number | 30 |
durationInFrames | number | 90 |
width | number | 1000 |
height | number | 500 |
Notes
Sizing from wrapped child
The component reads its size from the wrapped child via display: inline-block. Pass children with explicit width/height for pixel-perfect
placement.