carbon-custom-elements
Version:
A Carbon Design System variant that's as easy to use as native HTML elements, with no framework tax, no framework silo.
38 lines (33 loc) • 1.13 kB
TypeScript
/**
* @license
*
* Copyright IBM Corp. 2019, 2020
*
* 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 { Component } from 'react';
interface ComponentProps {
/**
* The `aria-label` attribute for the icon to clear selection.
*/
clearSelectionLabel?: string;
/**
* An assistive text for screen reader to announce, telling that an item is unselected.
*/
unselectedItemAssistiveText?: string;
/**
* An assistive text for screen reader to announce, telling that all items are unselected.
*/
unselectedAllAssistiveText?: string;
}
/**
* Multi select.
* @element bx-multi-select
* @fires bx-multi-select-beingselected
* The custom event fired before a multi select item is selected upon a user gesture.
* Cancellation of this event stops changing the user-initiated selection.
* @fires bx-multi-select-selected - The custom event fired after a a multi select item is selected upon a user gesture.
*/
declare class BXMultiSelect extends Component<ComponentProps> {}
export default BXMultiSelect;