UNPKG

@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

28 lines (27 loc) 963 B
import React from 'react'; import { BaseComponentProps } from '../internal/base-component'; import { NonCancelableEventHandler } from '../internal/events'; import { FormFieldControlProps } from '../internal/context/form-field-context'; import { Breakpoint as _Breakpoint } from '../internal/breakpoints'; export interface TilesProps extends BaseComponentProps, FormFieldControlProps { value: string | null; items?: ReadonlyArray<TilesProps.TilesDefinition>; ariaLabel?: string; ariaRequired?: boolean; columns?: number; onChange?: NonCancelableEventHandler<TilesProps.ChangeDetail>; } export declare namespace TilesProps { type Breakpoint = _Breakpoint; interface TilesDefinition { value: string; label: React.ReactNode; description?: React.ReactNode; image?: React.ReactNode; disabled?: boolean; controlId?: string; } interface ChangeDetail { value: string; } }