UNPKG

@carbon/react

Version:

React components for the Carbon Design System

38 lines (37 loc) 1.19 kB
/** * Copyright IBM Corp. 2016, 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React, { type HTMLAttributes, type ReactNode } from 'react'; export interface ListBoxMenuItemProps extends HTMLAttributes<HTMLLIElement> { /** * Specify any children nodes that should be rendered inside of the ListBox * Menu Item */ children?: ReactNode; /** * Specify whether the current menu item is "active". */ isActive?: boolean; /** * Specify whether the current menu item is "highlighted". */ isHighlighted?: boolean; /** * Specify whether the item should be disabled */ disabled?: boolean; /** * Provide an optional tooltip for the ListBoxMenuItem */ title?: string; } /** * `ListBoxMenuItem` is a helper component for managing the container class * name, alongside any classes for any corresponding states, for a generic list * box menu item. */ declare const ListBoxMenuItem: React.ForwardRefExoticComponent<ListBoxMenuItemProps & React.RefAttributes<HTMLLIElement>>; export default ListBoxMenuItem;