Inset

A recessed panel with a sunken background, rounded border and responsive padding for grouping secondary content, code samples or previews inside a card or page.

src/registry/ui/inset.tsx/r/inset.json

Installation#

bash
npx shadcn@latest add @minidev/inset

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/inset.json

Usage#

tsx
import { Inset } from "@/components/ui/inset"

export function Example() {
  return <Inset />
}

API reference#

Inset props
PropTypeDefault
childrenReact.ReactNode-
classNamestring-
All layout components

Learn more