@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
24 lines (23 loc) • 917 B
TypeScript
import { OptionDefinition } from '../option/interfaces';
export interface SelectedTokensProps {
controlId?: string;
expanded: boolean;
disabled?: boolean;
tokenLimit?: number;
deselectAriaLabel?: SelectedTokensProps.ContainingOptionString;
selectedOptions?: ReadonlyArray<OptionDefinition>;
i18nStrings?: SelectedTokensProps.I18nStrings;
onToggleClick: () => void;
onTokenDismiss: (index: number) => void;
}
declare const SelectedTokens: ({ controlId, expanded, disabled, tokenLimit, selectedOptions, deselectAriaLabel, i18nStrings, onToggleClick, onTokenDismiss }: SelectedTokensProps) => JSX.Element;
export declare namespace SelectedTokensProps {
interface I18nStrings {
tokenLimitShowFewer?: string;
tokenLimitShowMore?: string;
}
interface ContainingOptionString {
(option: OptionDefinition): string;
}
}
export default SelectedTokens;