@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
26 lines (25 loc) • 844 B
TypeScript
import { BaseComponentProps } from '../internal/base-component';
import { NonCancelableEventHandler } from '../internal/events';
import { IconProps } from '../icon';
export interface TokenGroupProps extends BaseComponentProps {
alignment?: TokenGroupProps.Alignment;
items?: ReadonlyArray<TokenGroupProps.Item>;
onDismiss?: NonCancelableEventHandler<TokenGroupProps.DismissDetail>;
}
export declare namespace TokenGroupProps {
type Alignment = 'horizontal' | 'vertical';
interface Item {
label?: string;
disabled?: boolean;
labelTag?: string;
description?: string;
iconAlt?: string;
iconName?: IconProps.Name;
iconUrl?: string;
tags?: ReadonlyArray<string>;
dismissLabel?: string;
}
interface DismissDetail {
itemIndex: number;
}
}