@shopify/polaris
Version:
Shopify’s admin product component library
14 lines (13 loc) • 667 B
TypeScript
/// <reference types="react" />
import type { ActionListItemDescriptor, ActionListSection } from '../../types';
export interface ActionListProps {
/** Collection of actions for list */
items?: readonly ActionListItemDescriptor[];
/** Collection of sectioned action items */
sections?: readonly ActionListSection[];
/** Defines a specific role attribute for each action in the list */
actionRole?: string;
/** Callback when any item is clicked or keypressed */
onActionAnyItem?: ActionListItemDescriptor['onAction'];
}
export declare function ActionList({ items, sections, actionRole, onActionAnyItem, }: ActionListProps): JSX.Element;