Usage
Paper is a container component that creates an elevated surface effect using shadows, borders, and background colors. It’s commonly used for cards, panels, and other elevated UI elements.Examples
Basic Paper
Custom Shadow
With Border
Custom Padding and Radius
No Shadow or Padding
Combination Example
Props
The shadow depth of the paper. Controls the elevation effect.
none: No shadowxs: Extra small shadowsm: Small shadow (default)md: Medium shadowlg: Large shadowxl: Extra large shadow
The border radius of the paper.
none: No border radius (square corners)sm: Small radiusmd: Medium radius (default)lg: Large radiusxl: Extra large radiusfull: Fully rounded (pill shape)
Whether to display a subtle border around the paper.
The internal padding of the paper.
none: No paddingxs: 0.5rem (8px)sm: 0.75rem (12px)md: 1rem (16px, default)lg: 1.5rem (24px)xl: 2rem (32px)
Additional CSS classes to apply to the paper.
Ref forwarding is supported for the underlying div element.
All other standard HTML div attributes are supported (onClick, onMouseEnter, etc.).
Styling
Paper uses CSS custom properties for theming:- Background:
bg-card - Text color:
text-card-foreground - Border color:
border-border