@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) • 754 B
TypeScript
import { NonCancelableEventHandler } from '../internal/events';
import { BaseComponentProps } from '../internal/base-component';
import { IconProps } from '../icon';
export interface SegmentedControlProps extends BaseComponentProps {
selectedId: string | null;
options?: ReadonlyArray<SegmentedControlProps.Option>;
label?: string;
ariaLabelledby?: string;
onChange?: NonCancelableEventHandler<SegmentedControlProps.ChangeDetail>;
}
export declare namespace SegmentedControlProps {
interface Option {
id: string;
disabled?: boolean;
iconName?: IconProps.Name;
iconAlt?: string;
iconUrl?: string;
text?: string;
}
interface ChangeDetail {
selectedId: string;
}
}