MarsalaDS

Buscar

Páginas e componentes da documentação

Drawer

PropTipoValor
openopcional

boolean

Estado aberto do Drawer (controlado).

triggerLabelopcional

string

Texto do DrawerTrigger no exemplo.

triggerVariantopcional
  • | 'outline' (default)
  • | 'default'
  • | 'secondary'
  • | 'destructive'
titleopcional

string

Conteúdo de DrawerTitle.

descriptionopcional

string

Conteúdo de DrawerDescription.

swipeDirectionopcional
  • | 'down' (default)
  • | 'up'
  • | 'left'
  • | 'right'

Direção do gesto para abrir/fechar.

showSwipeHandleopcional

boolean

Exibe a alça de arraste no painel.

snapPointsopcional
  • | 'none' (default)
  • | 'half'
  • | 'peek'

Pontos de snap (altura). half: ~45% e 100%. peek: 35%, 70% e 100%. Só em down/up.

modalopcional

boolean

Overlay modal com bloqueio de interação fora.

showFooteropcional

boolean

Exibe DrawerFooter em vez da lista de ações.

cancelLabelopcional

string

Texto do DrawerClose no footer.

confirmLabelopcional

string

Texto do botão primário no footer.

confirmVariantopcional
  • | 'default' (default)
  • | 'outline'
  • | 'secondary'
  • | 'destructive'

variant do botão de confirmação.