Skip to main content

Preview Card

Preview content in a card layout, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
childrenReactNode-The card's contents.
The card's contents.
arrowbooleantrue
triggerReactNode-The inline content that opens the card on hover or focus.
The inline content that opens the card on hover or focus.
renderReactElement-
defaultOpenbooleanfalse
openboolean-Controlled state.
Controlled state.
onOpenChange(open: boolean) => void-
shapenone | rounded | pillrounded
animatedbooleantrue
classNamestring-
focusboolean | stringtrue
containerHTMLElement | null-