Pular para o conteúdo principal

DropdownMenu 🗑️

Deprecated

This component is deprecated. Use the Dropdown component instead. If you need any help with the migration, take a look in our migration guide.

import { DropdownMenu } from '@resultadosdigitais/tangram-components'
Concerns
📍 Required
Typenode | func

Description

Sets the children element.

Typestring | number

Description

Responsible to connect accessibly DropdownMenu.List with DropdownMenu.Trigger. The id value is used in aria-labelledby.

Typebool
Defaultfalse

Description

A boolean value to control if render opened or closed.

Typefunc
Paramevent React.SyntheticEvent - The event source of the callback.
ParamnewOpenState boolean - The open new state.

Description

Callback fired when DropdownMenu.Trigger component is clicked or using accessible keyboard navigation to close DropdownMenu.List with ESC.

Typefunc
Paramevent React.SyntheticEvent - The event source of the callback.

Description

Callback fired when DropdownMenu.Item is clicked.

Type
Enum of:
  • DropdownMenu.positions.topStart
  • DropdownMenu.positions.topEnd
  • DropdownMenu.positions.rightStart
  • DropdownMenu.positions.rightEnd
  • DropdownMenu.positions.bottom
  • DropdownMenu.positions.bottomStart
  • DropdownMenu.positions.bottomEnd
  • DropdownMenu.positions.leftStart
  • DropdownMenu.positions.leftEnd
DefaultDropdownMenu.positions.bottomStart

Description

Determines the direction and location of the DropdownMenu.List in relation to DropdownMenu.Trigger.

Typenumber | string

Description

Sets the distance between Dropdown and trigger. Use as a number or a string with unit px.

Deprecated

Use `<Dropdown.Divider />` instead

import { DropdownMenuDivider } from '@resultadosdigitais/tangram-components'
Deprecated

Use `<Dropdown.Item />` instead.

import { DropdownMenuItem } from '@resultadosdigitais/tangram-components'
TypeelementType
Default'a'
Description

Set element type to be rendered for this component. By default it will be render a <a> element.

Typebool
Defaultfalse
Description

Set boolean value to define item selected

Typebool
Defaultfalse
Description

Disable the item, making it unselectable

Typenode
Description

Sets the children element

Typefunc
Description

Callback fired when the item is clicked.

Deprecated

Use `<Dropdown />` instead.

import { DropdownMenu.List } from '@resultadosdigitais/tangram-components'
Typenode
Defaultnull
Description

Sets the children element.

Deprecated

Use `<Dropdown.Title />` instead

import { DropdownMenuTitle } from '@resultadosdigitais/tangram-components'
Typenode
Defaultnull
Description

Sets the children.

Deprecated

Use `<Dropdown />` instead

import { DropdownMenu.Trigger } from '@resultadosdigitais/tangram-components'
Typenode
Description

Sets the children element

Feedback