Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DropdownMenuItemProps

Hierarchy

Index

Properties

Methods

Properties

Optional about

about: string

Optional accessKey

accessKey: string

Optional anchor

anchor: PositionAnchor

The positioning anchor for the menu relative to the button/control that owns the menu. This is used for the positioning logic as well as modifying the animationg slightly to originate from a coordinate. When this is omitted, it will default to:

const verticalAnchor = {
  x: "inner-right",
  y: "top",
};

const horizontalAnchor = {
  x: "center",
  y: "center",
};

Optional aria-activedescendant

aria-activedescendant: string

Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.

Optional aria-atomic

aria-atomic: boolean | "true" | "false"

Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.

Optional aria-autocomplete

aria-autocomplete: "list" | "none" | "inline" | "both"

Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.

Optional aria-busy

aria-busy: boolean | "true" | "false"

Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.

Optional aria-checked

aria-checked: boolean | "true" | "false" | "mixed"

Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.

see

aria-pressed @see aria-selected.

Optional aria-colcount

aria-colcount: number

Defines the total number of columns in a table, grid, or treegrid.

see

aria-colindex.

Optional aria-colindex

aria-colindex: number

Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.

see

aria-colcount @see aria-colspan.

Optional aria-colspan

aria-colspan: number

Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.

see

aria-colindex @see aria-rowspan.

Optional aria-controls

aria-controls: string

Identifies the element (or elements) whose contents or presence are controlled by the current element.

see

aria-owns.

Optional aria-current

aria-current: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time"

Indicates the element that represents the current item within a container or set of related elements.

Optional aria-describedby

aria-describedby: string

Identifies the element (or elements) that describes the object.

see

aria-labelledby

Optional aria-details

aria-details: string

Identifies the element that provides a detailed, extended description for the object.

see

aria-describedby.

Optional aria-disabled

aria-disabled: boolean | "true" | "false"

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.

see

aria-hidden @see aria-readonly.

Optional aria-dropeffect

aria-dropeffect: "link" | "none" | "copy" | "execute" | "move" | "popup"

Indicates what functions can be performed when a dragged object is released on the drop target.

deprecated

in ARIA 1.1

Optional aria-errormessage

aria-errormessage: string

Identifies the element that provides an error message for the object.

see

aria-invalid @see aria-describedby.

Optional aria-expanded

aria-expanded: boolean | "true" | "false"

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

Optional aria-flowto

aria-flowto: string

Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.

Optional aria-grabbed

aria-grabbed: boolean | "true" | "false"

Indicates an element's "grabbed" state in a drag-and-drop operation.

deprecated

in ARIA 1.1

Optional aria-haspopup

aria-haspopup: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree"

Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.

Optional aria-hidden

aria-hidden: boolean | "true" | "false"

Indicates whether the element is exposed to an accessibility API.

see

aria-disabled.

Optional aria-invalid

aria-invalid: boolean | "true" | "false" | "grammar" | "spelling"

Indicates the entered value does not conform to the format expected by the application.

see

aria-errormessage.

Optional aria-keyshortcuts

aria-keyshortcuts: string

Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.

Optional aria-label

aria-label: string

Defines a string value that labels the current element.

see

aria-labelledby.

Optional aria-labelledby

aria-labelledby: string

Identifies the element (or elements) that labels the current element.

see

aria-describedby.

Optional aria-level

aria-level: number

Defines the hierarchical level of an element within a structure.

Optional aria-live

aria-live: "off" | "assertive" | "polite"

Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.

Optional aria-modal

aria-modal: boolean | "true" | "false"

Indicates whether an element is modal when displayed.

Optional aria-multiline

aria-multiline: boolean | "true" | "false"

Indicates whether a text box accepts multiple lines of input or only a single line.

Optional aria-multiselectable

aria-multiselectable: boolean | "true" | "false"

Indicates that the user may select more than one item from the current selectable descendants.

Optional aria-orientation

aria-orientation: "horizontal" | "vertical"

Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.

Optional aria-owns

aria-owns: string

Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.

see

aria-controls.

Optional aria-placeholder

aria-placeholder: string

Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.

Optional aria-posinset

aria-posinset: number

Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.

see

aria-setsize.

Optional aria-pressed

aria-pressed: boolean | "true" | "false" | "mixed"

Indicates the current "pressed" state of toggle buttons.

see

aria-checked @see aria-selected.

Optional aria-readonly

aria-readonly: boolean | "true" | "false"

Indicates that the element is not editable, but is otherwise operable.

see

aria-disabled.

Optional aria-relevant

aria-relevant: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"

Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.

see

aria-atomic.

Optional aria-required

aria-required: boolean | "true" | "false"

Indicates that user input is required on the element before a form may be submitted.

Optional aria-roledescription

aria-roledescription: string

Defines a human-readable, author-localized description for the role of an element.

Optional aria-rowcount

aria-rowcount: number

Defines the total number of rows in a table, grid, or treegrid.

see

aria-rowindex.

Optional aria-rowindex

aria-rowindex: number

Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.

see

aria-rowcount @see aria-rowspan.

Optional aria-rowspan

aria-rowspan: number

Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.

see

aria-rowindex @see aria-colspan.

Optional aria-selected

aria-selected: boolean | "true" | "false"

Indicates the current "selected" state of various widgets.

see

aria-checked @see aria-pressed.

Optional aria-setsize

aria-setsize: number

Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.

see

aria-posinset.

Optional aria-sort

aria-sort: "none" | "ascending" | "descending" | "other"

Indicates if items in a table or grid are sorted in ascending or descending order.

Optional aria-valuemax

aria-valuemax: number

Defines the maximum allowed value for a range widget.

Optional aria-valuemin

aria-valuemin: number

Defines the minimum allowed value for a range widget.

Optional aria-valuenow

aria-valuenow: number

Defines the current value for a range widget.

see

aria-valuetext.

Optional aria-valuetext

aria-valuetext: string

Defines the human readable text alternative of aria-valuenow for a range widget.

Optional autoCapitalize

autoCapitalize: string

Optional autoCorrect

autoCorrect: string

Optional autoSave

autoSave: string

Optional children

children: ReactNode

The main content to display. When the textChildren prop is enabled and there is child content, it will be treated as primary text and update the styles automatically.

Optional className

className: string

Optional clickable

clickable: boolean

Boolean if the list item should be updated to use the clickable styles to the item. This is really just a pass-down value for the main ListItem component and shouldn't really be used unless you are implementing your own clickable ListItem component.

Optional closeOnResize

closeOnResize: boolean

Boolean if the menu should no longer close when the page is resized. Instead, it'll automatically update its position within the viewport.

Optional closeOnScroll

closeOnScroll: boolean

Boolean if the menu should not be closed when the page is scrolled. Instead, it'll automatically update its position within the viewport. You normally don't want to enable this prop as the menu won't close if the menu control element is no longer in the viewport.

Optional color

color: string

Optional contentEditable

contentEditable: Booleanish | "inherit"

Optional contextMenu

contextMenu: string

Optional dangerouslySetInnerHTML

dangerouslySetInnerHTML: { __html: string }

Type declaration

  • __html: string

Optional datatype

datatype: string

Optional defaultChecked

defaultChecked: boolean

Optional defaultValue

defaultValue: string | number | readonly string[]

Optional defaultVisible

defaultVisible: boolean

Boolean if the menu should be visible immediately once this component mounts.

Optional dir

dir: string

Optional disableDropdownIcon

disableDropdownIcon: boolean

Boolean if the dropdown icon should be removed from the button. The icon will always be removed for icon buttons.

Optional disableEnterClick

disableEnterClick: boolean

Boolean if the enter keyboard click polyfill should be completely disabled. This is generally used if the keyboard functionality is already built-in to the element like buttons or labels.

Optional disableEscapeCascade

disableEscapeCascade: boolean

The default behavior of the dropdown menu is to close when the escape key is pressed. Now that there are multiple nested menus, this will actually close all of them by default. If this is undesired behavior, you can enable this prop which will make sure only the top-level dropdown menu will be closed.

Optional disablePressedFallback

disablePressedFallback: boolean

Boolean if the component should fallback to using the custom pressed class names when ripples are disabled.

defaultvalue

false

Optional disableProgrammaticRipple

disableProgrammaticRipple: boolean

Boolean if the ripple component should not be triggered after a "programmatic" ripple effect. This would be if the .click() function is called on an element through javascript or some other means.

Optional disableRipple

disableRipple: boolean

Boolean if the ripple effect should be disabled for all child components that use the Ripple states.

Optional disableSpacebarClick

disableSpacebarClick: boolean

Boolean if the spacebar should not trigger a click event when using the user pressed spacebar on a focusable element. You normally want the spacebar to also trigger a click event , but there are a few cases where it should not (like custom links).

When this is disabled, it will also make sure that the ripple and pressed effects are not triggered from a spacebar click.

defaultvalue

false

Optional disabled

disabled: boolean

This prop shouldn't really be used other than a pass-down value from the ListItem component.

Optional disabledOpacity

disabledOpacity: boolean

Boolean if the list item should apply an opacity value while disabled instead of overriding the primary and secondary text colors. Enabling this will allow for the list item addons to also be dimmed.

This is configured by the $rmd-list-item-disabled-opacity variable.

Note: This does nothing if the disabled prop is not enabled.

remarks

@since 2.4.3

Optional draggable

draggable: Booleanish

Optional dropdownIcon

dropdownIcon: ReactNode

The icon to show after the children in the button when the buttonType is not set to "icon".

Optional enablePressedAndRipple

enablePressedAndRipple: boolean

Boolean if the element should be able to gain both the ripple effect and the pressed states changes. This will only be enabled if both the disableRipple and disabledPressedFallback are still false

Optional forceAddonWrap

forceAddonWrap: boolean

Boolean if the left and/or right addons should be "forcefully" wrapped in a <span> with the spacing class names applied instead of attempting to clone it into the provided icon element.

Optional handlers

handlers: MergableRippleHandlers<HTMLLIElement>

An optional object of event handlers to merge with the required ripple trigger event handlers.

Optional height

height: ListItemHeight

The height to apply to the list item.

Conversions:

  • height !== "auto" -> height
  • secondaryText or left/right addon is media/media-large -> "extra-large"
  • left/right addon is avatar -> "large"
  • left/right addon is icon -> "medium"
  • no addons and no secondary text -> "normal"

Optional hidden

hidden: boolean

Optional horizontal

horizontal: boolean

Boolean if the menu should be rendered horizontally instead of vertically.

id

id: string

The id to use for the menu button and used to create the id for the menu. The menu's id will just be ${id}-menu.

Optional inlist

inlist: any

Optional inputMode

inputMode: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal"

Hints at the type of data that might be entered by the user while editing the element or its contents

see

https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute

Optional is

is: string

Specify that a standard HTML element should behave like a defined custom built-in element

see

https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is

Optional itemID

itemID: string

Optional itemProp

itemProp: string

Optional itemRef

itemRef: string

Optional itemRenderer

itemRenderer: (item: ValidMenuItem, key: string) => ReactNode

Type declaration

    • A function to call for each item in the items list to render a ReactElement.

      Parameters

      Returns ReactNode

Optional itemScope

itemScope: boolean

Optional itemType

itemType: string

items

items: ValidMenuItem[]

A list of menu items to render. Each item will be passed to the menuItemRenderer function.

Optional lang

lang: string

Optional leftAddon

leftAddon: ReactNode

An optional addon to display to the left of the primaryText or children and should be used with the leftAddonType prop to adjust spacing.

Optional leftAddonPosition

leftAddonPosition: ListItemAddonPosition

The vertical position the left icon, avatar, media, or large media should be placed.

Optional leftAddonType

leftAddonType: ListItemAddonType

The type of the addon that appears to the left of the primaryText or children.

Optional menuClassName

menuClassName: string

An optional className to pass to the menuRenderer/Menu component.

Optional menuLabel

menuLabel: string

The label to use for the menu. Either this or the menuLabelledBy props are required for a11y.

Optional menuLabelledBy

menuLabelledBy: string

The id for an element to label the menu. Either this or the menuLabel props are required for a11y. This will be defaulted to the id of the menu button for convenience since it should normally label the menu but should be changed if it does not.

Optional menuRenderer

menuRenderer: MenuRenderer

A custom menu renderer to use. This defaults to just rendering the Menu component with the base required props and a generated id from the button id.

Optional menuStyle

menuStyle: CSSProperties

An optional style object to pass to the menuRenderer/Menu component.

Optional onAbort

onAbort: ReactEventHandler<HTMLLIElement>

Optional onAbortCapture

onAbortCapture: ReactEventHandler<HTMLLIElement>

Optional onAnimationEnd

onAnimationEnd: AnimationEventHandler<HTMLLIElement>

Optional onAnimationEndCapture

onAnimationEndCapture: AnimationEventHandler<HTMLLIElement>

Optional onAnimationIteration

onAnimationIteration: AnimationEventHandler<HTMLLIElement>

Optional onAnimationIterationCapture

onAnimationIterationCapture: AnimationEventHandler<HTMLLIElement>

Optional onAnimationStart

onAnimationStart: AnimationEventHandler<HTMLLIElement>

Optional onAnimationStartCapture

onAnimationStartCapture: AnimationEventHandler<HTMLLIElement>

Optional onAuxClick

onAuxClick: MouseEventHandler<HTMLLIElement>

Optional onAuxClickCapture

onAuxClickCapture: MouseEventHandler<HTMLLIElement>

Optional onBeforeInput

onBeforeInput: FormEventHandler<HTMLLIElement>

Optional onBeforeInputCapture

onBeforeInputCapture: FormEventHandler<HTMLLIElement>

Optional onBlur

onBlur: FocusEventHandler<HTMLLIElement>

Optional onBlurCapture

onBlurCapture: FocusEventHandler<HTMLLIElement>

Optional onCanPlay

onCanPlay: ReactEventHandler<HTMLLIElement>

Optional onCanPlayCapture

onCanPlayCapture: ReactEventHandler<HTMLLIElement>

Optional onCanPlayThrough

onCanPlayThrough: ReactEventHandler<HTMLLIElement>

Optional onCanPlayThroughCapture

onCanPlayThroughCapture: ReactEventHandler<HTMLLIElement>

Optional onChange

onChange: FormEventHandler<HTMLLIElement>

Optional onChangeCapture

onChangeCapture: FormEventHandler<HTMLLIElement>

Optional onClick

onClick: MouseEventHandler<HTMLLIElement>

Optional onClickCapture

onClickCapture: MouseEventHandler<HTMLLIElement>

Optional onCompositionEnd

onCompositionEnd: CompositionEventHandler<HTMLLIElement>

Optional onCompositionEndCapture

onCompositionEndCapture: CompositionEventHandler<HTMLLIElement>

Optional onCompositionStart

onCompositionStart: CompositionEventHandler<HTMLLIElement>

Optional onCompositionStartCapture

onCompositionStartCapture: CompositionEventHandler<HTMLLIElement>

Optional onCompositionUpdate

onCompositionUpdate: CompositionEventHandler<HTMLLIElement>

Optional onCompositionUpdateCapture

onCompositionUpdateCapture: CompositionEventHandler<HTMLLIElement>

Optional onContextMenu

onContextMenu: MouseEventHandler<HTMLLIElement>

Optional onContextMenuCapture

onContextMenuCapture: MouseEventHandler<HTMLLIElement>

Optional onCopy

onCopy: ClipboardEventHandler<HTMLLIElement>

Optional onCopyCapture

onCopyCapture: ClipboardEventHandler<HTMLLIElement>

Optional onCut

onCut: ClipboardEventHandler<HTMLLIElement>

Optional onCutCapture

onCutCapture: ClipboardEventHandler<HTMLLIElement>

Optional onDoubleClick

onDoubleClick: MouseEventHandler<HTMLLIElement>

Optional onDoubleClickCapture

onDoubleClickCapture: MouseEventHandler<HTMLLIElement>

Optional onDrag

onDrag: DragEventHandler<HTMLLIElement>

Optional onDragCapture

onDragCapture: DragEventHandler<HTMLLIElement>

Optional onDragEnd

onDragEnd: DragEventHandler<HTMLLIElement>

Optional onDragEndCapture

onDragEndCapture: DragEventHandler<HTMLLIElement>

Optional onDragEnter

onDragEnter: DragEventHandler<HTMLLIElement>

Optional onDragEnterCapture

onDragEnterCapture: DragEventHandler<HTMLLIElement>

Optional onDragExit

onDragExit: DragEventHandler<HTMLLIElement>

Optional onDragExitCapture

onDragExitCapture: DragEventHandler<HTMLLIElement>

Optional onDragLeave

onDragLeave: DragEventHandler<HTMLLIElement>

Optional onDragLeaveCapture

onDragLeaveCapture: DragEventHandler<HTMLLIElement>

Optional onDragOver

onDragOver: DragEventHandler<HTMLLIElement>

Optional onDragOverCapture

onDragOverCapture: DragEventHandler<HTMLLIElement>

Optional onDragStart

onDragStart: DragEventHandler<HTMLLIElement>

Optional onDragStartCapture

onDragStartCapture: DragEventHandler<HTMLLIElement>

Optional onDrop

onDrop: DragEventHandler<HTMLLIElement>

Optional onDropCapture

onDropCapture: DragEventHandler<HTMLLIElement>

Optional onDurationChange

onDurationChange: ReactEventHandler<HTMLLIElement>

Optional onDurationChangeCapture

onDurationChangeCapture: ReactEventHandler<HTMLLIElement>

Optional onEmptied

onEmptied: ReactEventHandler<HTMLLIElement>

Optional onEmptiedCapture

onEmptiedCapture: ReactEventHandler<HTMLLIElement>

Optional onEncrypted

onEncrypted: ReactEventHandler<HTMLLIElement>

Optional onEncryptedCapture

onEncryptedCapture: ReactEventHandler<HTMLLIElement>

Optional onEnded

onEnded: ReactEventHandler<HTMLLIElement>

Optional onEndedCapture

onEndedCapture: ReactEventHandler<HTMLLIElement>

Optional onError

onError: ReactEventHandler<HTMLLIElement>

Optional onErrorCapture

onErrorCapture: ReactEventHandler<HTMLLIElement>

Optional onFocus

onFocus: FocusEventHandler<HTMLLIElement>

Optional onFocusCapture

onFocusCapture: FocusEventHandler<HTMLLIElement>

Optional onGotPointerCapture

onGotPointerCapture: PointerEventHandler<HTMLLIElement>

Optional onGotPointerCaptureCapture

onGotPointerCaptureCapture: PointerEventHandler<HTMLLIElement>

Optional onInput

onInput: FormEventHandler<HTMLLIElement>

Optional onInputCapture

onInputCapture: FormEventHandler<HTMLLIElement>

Optional onInvalid

onInvalid: FormEventHandler<HTMLLIElement>

Optional onInvalidCapture

onInvalidCapture: FormEventHandler<HTMLLIElement>

Optional onKeyDown

onKeyDown: KeyboardEventHandler<HTMLLIElement>

Optional onKeyDownCapture

onKeyDownCapture: KeyboardEventHandler<HTMLLIElement>

Optional onKeyPress

onKeyPress: KeyboardEventHandler<HTMLLIElement>

Optional onKeyPressCapture

onKeyPressCapture: KeyboardEventHandler<HTMLLIElement>

Optional onKeyUp

onKeyUp: KeyboardEventHandler<HTMLLIElement>

Optional onKeyUpCapture

onKeyUpCapture: KeyboardEventHandler<HTMLLIElement>

Optional onLoad

onLoad: ReactEventHandler<HTMLLIElement>

Optional onLoadCapture

onLoadCapture: ReactEventHandler<HTMLLIElement>

Optional onLoadStart

onLoadStart: ReactEventHandler<HTMLLIElement>

Optional onLoadStartCapture

onLoadStartCapture: ReactEventHandler<HTMLLIElement>

Optional onLoadedData

onLoadedData: ReactEventHandler<HTMLLIElement>

Optional onLoadedDataCapture

onLoadedDataCapture: ReactEventHandler<HTMLLIElement>

Optional onLoadedMetadata

onLoadedMetadata: ReactEventHandler<HTMLLIElement>

Optional onLoadedMetadataCapture

onLoadedMetadataCapture: ReactEventHandler<HTMLLIElement>

Optional onLostPointerCapture

onLostPointerCapture: PointerEventHandler<HTMLLIElement>

Optional onLostPointerCaptureCapture

onLostPointerCaptureCapture: PointerEventHandler<HTMLLIElement>

Optional onMouseDown

onMouseDown: MouseEventHandler<HTMLLIElement>

Optional onMouseDownCapture

onMouseDownCapture: MouseEventHandler<HTMLLIElement>

Optional onMouseEnter

onMouseEnter: MouseEventHandler<HTMLLIElement>

Optional onMouseLeave

onMouseLeave: MouseEventHandler<HTMLLIElement>

Optional onMouseMove

onMouseMove: MouseEventHandler<HTMLLIElement>

Optional onMouseMoveCapture

onMouseMoveCapture: MouseEventHandler<HTMLLIElement>

Optional onMouseOut

onMouseOut: MouseEventHandler<HTMLLIElement>

Optional onMouseOutCapture

onMouseOutCapture: MouseEventHandler<HTMLLIElement>

Optional onMouseOver

onMouseOver: MouseEventHandler<HTMLLIElement>

Optional onMouseOverCapture

onMouseOverCapture: MouseEventHandler<HTMLLIElement>

Optional onMouseUp

onMouseUp: MouseEventHandler<HTMLLIElement>

Optional onMouseUpCapture

onMouseUpCapture: MouseEventHandler<HTMLLIElement>

Optional onPaste

onPaste: ClipboardEventHandler<HTMLLIElement>

Optional onPasteCapture

onPasteCapture: ClipboardEventHandler<HTMLLIElement>

Optional onPause

onPause: ReactEventHandler<HTMLLIElement>

Optional onPauseCapture

onPauseCapture: ReactEventHandler<HTMLLIElement>

Optional onPlay

onPlay: ReactEventHandler<HTMLLIElement>

Optional onPlayCapture

onPlayCapture: ReactEventHandler<HTMLLIElement>

Optional onPlaying

onPlaying: ReactEventHandler<HTMLLIElement>

Optional onPlayingCapture

onPlayingCapture: ReactEventHandler<HTMLLIElement>

Optional onPointerCancel

onPointerCancel: PointerEventHandler<HTMLLIElement>

Optional onPointerCancelCapture

onPointerCancelCapture: PointerEventHandler<HTMLLIElement>

Optional onPointerDown

onPointerDown: PointerEventHandler<HTMLLIElement>

Optional onPointerDownCapture

onPointerDownCapture: PointerEventHandler<HTMLLIElement>

Optional onPointerEnter

onPointerEnter: PointerEventHandler<HTMLLIElement>

Optional onPointerEnterCapture

onPointerEnterCapture: PointerEventHandler<HTMLLIElement>

Optional onPointerLeave

onPointerLeave: PointerEventHandler<HTMLLIElement>

Optional onPointerLeaveCapture

onPointerLeaveCapture: PointerEventHandler<HTMLLIElement>

Optional onPointerMove

onPointerMove: PointerEventHandler<HTMLLIElement>

Optional onPointerMoveCapture

onPointerMoveCapture: PointerEventHandler<HTMLLIElement>

Optional onPointerOut

onPointerOut: PointerEventHandler<HTMLLIElement>

Optional onPointerOutCapture

onPointerOutCapture: PointerEventHandler<HTMLLIElement>

Optional onPointerOver

onPointerOver: PointerEventHandler<HTMLLIElement>

Optional onPointerOverCapture

onPointerOverCapture: PointerEventHandler<HTMLLIElement>

Optional onPointerUp

onPointerUp: PointerEventHandler<HTMLLIElement>

Optional onPointerUpCapture

onPointerUpCapture: PointerEventHandler<HTMLLIElement>

Optional onProgress

onProgress: ReactEventHandler<HTMLLIElement>

Optional onProgressCapture

onProgressCapture: ReactEventHandler<HTMLLIElement>

Optional onRateChange

onRateChange: ReactEventHandler<HTMLLIElement>

Optional onRateChangeCapture

onRateChangeCapture: ReactEventHandler<HTMLLIElement>

Optional onReset

onReset: FormEventHandler<HTMLLIElement>

Optional onResetCapture

onResetCapture: FormEventHandler<HTMLLIElement>

Optional onScroll

onScroll: UIEventHandler<HTMLLIElement>

Optional onScrollCapture

onScrollCapture: UIEventHandler<HTMLLIElement>

Optional onSeeked

onSeeked: ReactEventHandler<HTMLLIElement>

Optional onSeekedCapture

onSeekedCapture: ReactEventHandler<HTMLLIElement>

Optional onSeeking

onSeeking: ReactEventHandler<HTMLLIElement>

Optional onSeekingCapture

onSeekingCapture: ReactEventHandler<HTMLLIElement>

Optional onSelect

onSelect: ReactEventHandler<HTMLLIElement>

Optional onSelectCapture

onSelectCapture: ReactEventHandler<HTMLLIElement>

Optional onStalled

onStalled: ReactEventHandler<HTMLLIElement>

Optional onStalledCapture

onStalledCapture: ReactEventHandler<HTMLLIElement>

Optional onSubmit

onSubmit: FormEventHandler<HTMLLIElement>

Optional onSubmitCapture

onSubmitCapture: FormEventHandler<HTMLLIElement>

Optional onSuspend

onSuspend: ReactEventHandler<HTMLLIElement>

Optional onSuspendCapture

onSuspendCapture: ReactEventHandler<HTMLLIElement>

Optional onTimeUpdate

onTimeUpdate: ReactEventHandler<HTMLLIElement>

Optional onTimeUpdateCapture

onTimeUpdateCapture: ReactEventHandler<HTMLLIElement>

Optional onTouchCancel

onTouchCancel: TouchEventHandler<HTMLLIElement>

Optional onTouchCancelCapture

onTouchCancelCapture: TouchEventHandler<HTMLLIElement>

Optional onTouchEnd

onTouchEnd: TouchEventHandler<HTMLLIElement>

Optional onTouchEndCapture

onTouchEndCapture: TouchEventHandler<HTMLLIElement>

Optional onTouchMove

onTouchMove: TouchEventHandler<HTMLLIElement>

Optional onTouchMoveCapture

onTouchMoveCapture: TouchEventHandler<HTMLLIElement>

Optional onTouchStart

onTouchStart: TouchEventHandler<HTMLLIElement>

Optional onTouchStartCapture

onTouchStartCapture: TouchEventHandler<HTMLLIElement>

Optional onTransitionEnd

onTransitionEnd: TransitionEventHandler<HTMLLIElement>

Optional onTransitionEndCapture

onTransitionEndCapture: TransitionEventHandler<HTMLLIElement>

Optional onVolumeChange

onVolumeChange: ReactEventHandler<HTMLLIElement>

Optional onVolumeChangeCapture

onVolumeChangeCapture: ReactEventHandler<HTMLLIElement>

Optional onWaiting

onWaiting: ReactEventHandler<HTMLLIElement>

Optional onWaitingCapture

onWaitingCapture: ReactEventHandler<HTMLLIElement>

Optional onWheel

onWheel: WheelEventHandler<HTMLLIElement>

Optional onWheelCapture

onWheelCapture: WheelEventHandler<HTMLLIElement>

Optional placeholder

placeholder: string

Optional portal

portal: boolean

Boolean if the portal should be used.

Optional portalInto

portalInto: PortalInto

Optional portalIntoId

portalIntoId: string

Optional positionOptions

positionOptions: MenuPositionOptions

Optional options to pass down to the useFixedPositionin hook styles to change how the menu is fixed to the MenuButton.

Optional prefix

prefix: string

Optional primaryText

primaryText: ReactNode

An optional element that should be rendered as the primaryText within the list item. It is most likely easier to use the children prop instead, but this allows you to create more complex components with the ListItem since you can provided children and have the styles for the primaryText still applied. By default, this will only allow one line of text and add ellipsis for any text overflow.

Optional property

property: string

Optional radioGroup

radioGroup: string

Optional resource

resource: string

Optional results

results: number

Optional rightAddon

rightAddon: ReactNode

An optional addon to display to the right of the primaryText or children and should be used with the rightAddonType prop to adjust spacing.

Optional rightAddonPosition

rightAddonPosition: ListItemAddonPosition

The vertical position the right icon, avatar, media, or large media should be placed.

Optional rightAddonType

rightAddonType: ListItemAddonType

The type of the addon that appears to the right of the primaryText or children.

Optional rippleClassName

rippleClassName: string

An optional className to apply to the ripple element.

Optional rippleClassNames

rippleClassNames: CSSTransitionClassNames

The class names to apply during the different stages for the ripple animation. You probably don't want to use this.

Optional rippleContainerClassName

rippleContainerClassName: string

An optional className to apply to the ripple's container element.

Optional rippleTimeout

rippleTimeout: number | { appear?: number; enter?: number; exit?: number } | { appear?: number; enter?: number; exit?: number }

The amount of time before a ripple finishes its animation. You probably don't want to change this value unless you updated the duration in scss or changed the different class names for the ripple animation.

Optional role

role: "button" | "menuitem"

The current role for the menu item. This will eventually be updated for some of the other menuitem* widgets.

Optional secondaryText

secondaryText: ReactNode

An optional element that should be rendered as the secondaryText within the list item. By default, this will only span one line and add ellipsis for overflow.

Optional secondaryTextClassName

secondaryTextClassName: string

An optional className to apply to the <span> that surrounds the secondaryText within the list item.

Optional security

security: string

Optional slot

slot: string

Optional spellCheck

spellCheck: Booleanish

Optional style

style: CSSProperties

Optional suppressContentEditableWarning

suppressContentEditableWarning: boolean

Optional suppressHydrationWarning

suppressHydrationWarning: boolean

Optional tabIndex

tabIndex: number

The tab index for the menu item. This should always stay at -1.

Optional textChildren

textChildren: boolean

Boolean if the children should be treated as the primaryText prop. This will wrap them in an additional class so that they have ellipsis for text overflow.

If you want to have more "freedom" within the ListItem, you can disable this prop so that the height will grow depending on content.

NOTE: If the secondaryText prop is provided, this will always be considered true.

Optional textClassName

textClassName: string

An optional className to apply to the <span> that surrounds the primaryText and optionally secondaryText within the list item.

Optional threeLines

threeLines: boolean

Boolean if the list item should be considered "three-lines" in height. This will update the secondaryText to span 2 lines instead of one, but it will not correctly applied the trailing ellipsis overflow due to browser compatibility of line-clamp. If you would still like the ellipsis to show, it is recommended to use javascript to add them yourself.

Optional title

title: string

Optional translate

translate: "yes" | "no"

Optional typeof

typeof: string

Optional unselectable

unselectable: "on" | "off"

Optional vocab

vocab: string

Methods

Optional onVisibilityChange

  • onVisibilityChange(visible: boolean): void

Generated using TypeDoc