dropdown: Dropdown menus

View source: R/dropdown.R

dropdownR Documentation

Description

Dropdown menus are a container for buttons, text, and form inputs. See argument ... for details on composing dropdown menus.

Usage

dropdown(label, ..., direction = "down", align = "left")

Arguments

label

A character string specifying the label of the dropdown's button.

...

Character strings or vectors, header tag elements, button inputs, or form inputs specifying the elements of the dropdown. These elements may be grouped into lists to create a menu with sections. h6() is the recommended heading level for menu headers. Character vectors are converted into paragraphs of text. To format menu text use p() and utility functions.

Additional named arguments are passed as HTML attributes to the parent element.

direction

One of "up", "right", "down", or "left" specifying the direction in which the menu opens, defaults to "down".

align

One of "left" or "right" specifying which side of the button to align the dropdown menu to, defaults to "left".

See Also

Other components: alert(), badge(), blockquote(), collapsePane(), d1(), img(), jumbotron(), modal(), pre(), toast()


nteetor/yonder documentation built on June 12, 2025, 3:49 a.m.