SuperdindaDocs
Overlays

Popover

Playground

Um preset por valor do primeiro eixo do Figma. Mude as props; dsState força hover, foco ou pressionado, como na matriz.

Popover

Variantes, tamanhos e estados

Cada célula é o componente real, marcada com a variante do Figma que reproduz (passe o mouse pra ver o node).

Arrow · Top

SizePopover
sm
md
lg

Arrow · Bottom

SizePopover
sm
md
lg

Arrow · None

SizePopover
sm
md
lg

Props

As props que o arquivo do DS declara. O componente também repassa as do primitivo (base-ui), quando ele tem um.

PopoverContentProps

PropTipoPadrãoDescrição
"lg" | "md" | "sm" | null"md"
PopoverArrowSide"top"Figma "Arrow": Top draws the arrow on the top edge (the popover sits below its trigger), Bottom on the bottom edge (it sits above), None hides it (below the trigger).
"center" | "end" | "start""start"Alignment along the trigger; the Figma arrow sits 16 px from the start.
string—
React.ReactNode—

PopoverPreviewProps

PropTipoPadrãoDescrição
"lg" | "md" | "sm" | null"md"
PopoverArrowSide"top"
string—
React.ReactNode—

On this page