import { GlobalProps } from '../../../shared/global'; import { ComponentChildren } from '../../../shared/children'; import { LinkBehaviorProps } from '../../../shared/clickable'; export interface ResourceItemProps extends GlobalProps, LinkBehaviorProps { /** * A label that describes the purpose or contents of the item. When set, * it will be announced to buyers using assistive technologies and will * provide them with more context. */ accessibilityLabel?: string; /** * The action grouping for the item, provided as buttons. */ action?: ComponentChildren; /** * Label for the action grouping. If a label is not provided, the surface may use default text. */ actionLabel?: string; /** * Accessibility label for the action grouping. If an accessibility label is not provided, * the surface may use the `actionLabel` or default text. */ actionAccessibilityLabel?: string; /** * Indicates that the item is in a loading state. * * When `true`, the item shows loading indicators for the UI elements that it is owns. * The item is not responsible for the loading indicators of any content that is passed as `children`. * * @default false */ loading?: boolean; }