Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TreeItemWithContentComponentProps

Hierarchy

Indexable

[key: string]: unknown

Since I allow the contentComponent prop for handling rendering <a> tags from other routing libraries, I unfortunately need an index key so that those props can be passed down correctly.

Index

Properties

Methods

Properties

Optional about

about: string

Optional accessKey

accessKey: string

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

Optional className

className: string

Optional color

color: string

Optional contentComponent

contentComponent: ElementType<any>

The component to render the item's content in. This should normally stay as the default "span" element, but if you'd like to make a navigation tree, this can be set as a Link component from a routing library.

Example:

<TreeItem href="#" contentComponent="a" />

<TreeItem to="/example-url" contentComponent={Link} exact />

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[]

depth

depth: number

The current depth that the tree item is being rendered at. This will be a number starting from 1 since it should be directly mapped to "aria-posinset".

Optional dir

dir: string

Optional disabled

disabled: boolean

Boolean if the tree item is disabled which will prevent it from being interactable. It will still be "keyboard focusable" while disabled, but clicking or selecting won't work.

Optional draggable

draggable: Booleanish

expanded

expanded: boolean

Boolean if the tree item is expanded. When this is true, it should add aria-expanded="true" to the tree item.

Optional expanderIcon

expanderIcon: ReactNode

The icon to show within each item within the tree that helps show that there are child items.

NOTE: This will override the rightAddon prop if defined on each item by default so they can't be used. If the expanderLeft prop is enabled, the leftAddon will be overridden instead.

Optional expanderLeft

expanderLeft: boolean

Boolean if the expander icon should appear to the left instead of the right.

focused

focused: boolean

Boolean if the tree item is the current keyboard focus.

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 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

id

id: string

A DOM id for the tree item. This is required for a11y since this id should reflect the aria-activedescendant value on the base Tree component to show current keyboard focus.

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 isLink

isLink: boolean

Boolean if the TreeItem is a link component which changes up how the accessibility attributes are applied to the DOM. The default behavior is to check if the contentComponent is to consider it a link if it is not a string (custom component) or the string: "a". Since this might cause some false-positives, you can set this flag instead which will always be used instead.

Optional itemID

itemID: string

itemIndex

itemIndex: number

The current tree item's index within its list at the provided depth. This will be a number starting from 1 since it should be directly mapped to "aria-posinset".

Optional itemProp

itemProp: string

Optional itemRef

itemRef: string

Optional itemScope

itemScope: boolean

Optional itemType

itemType: string

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 liClassName

liClassName: string

An optional className to apply to the surrounding <li> element for the tree item. The className prop is actually passed to the contentComponent element instead since you normally don't want to apply styles to the surrounding element.

Optional liRef

liRef: Ref<HTMLLIElement>

An optional ref to apply to the content of the tree item.

Optional liStyle

liStyle: CSSProperties

An optional style to apply to the surrounding <li> element for the tree item. The style prop is actually passed to the contentComponent element instead since you normally don't want to apply styles to the surrounding element.

listSize

listSize: number

The current total list size for the tree item at the provided depth. This should be mapped directly into "aria-setsize".

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 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 readOnly

readOnly: boolean

Boolean if the tree item is read only. Not sure why this was added though since <li> elements don't support readOnly.

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 role

role: AriaRole

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

selected

selected: boolean

Boolean if the tree item is currently selected.

Optional slot

slot: string

Optional spellCheck

spellCheck: Booleanish

Optional style

style: CSSProperties

Optional suppressContentEditableWarning

suppressContentEditableWarning: boolean

Optional suppressHydrationWarning

suppressHydrationWarning: boolean

Optional tabIndex

tabIndex: number

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 renderChildItems

  • renderChildItems(): ReactNode
  • This function will only be provided when the tree item has child tree items. This function should only be called within the exported TreeGroup component or in a component that has the role="group" for accessibility.

    Returns ReactNode

Generated using TypeDoc