UNPKG

@carbon/react

Version:

React components for the Carbon Design System

29 lines (28 loc) 1.4 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. */ export * from './ListBoxPropTypes'; import type { ComponentProps } from 'react'; import ListBoxInternal from './ListBox'; import { ListBoxFieldComponent } from './ListBoxField'; import ListBoxMenu from './ListBoxMenu'; import ListBoxMenuIcon, { ListBoxMenuIconComponent } from './ListBoxMenuIcon'; import ListBoxMenuItem from './ListBoxMenuItem'; import ListBoxSelection, { ListBoxSelectionComponent } from './ListBoxSelection'; type ListBoxMenuComponent = typeof ListBoxMenu; type ListBoxMenuItemComponent = typeof ListBoxMenuItem; type ListBoxPartialComponent = typeof ListBoxInternal; export interface ListBoxComponent extends ListBoxPartialComponent { readonly Field: ListBoxFieldComponent; readonly Menu: ListBoxMenuComponent; readonly MenuIcon: ListBoxMenuIconComponent; readonly MenuItem: ListBoxMenuItemComponent; readonly Selection: ListBoxSelectionComponent; } declare const ListBox: ListBoxComponent; export default ListBox; export type ListBoxMenuIconTranslationKey = Parameters<NonNullable<ComponentProps<typeof ListBoxMenuIcon>['translateWithId']>>[0]; export type ListBoxSelectionTranslationKey = Parameters<NonNullable<ComponentProps<typeof ListBoxSelection>['translateWithId']>>[0];