UNPKG

@shopify/polaris

Version:

Shopify’s admin product component library

23 lines 1.22 kB
import React from 'react'; import type { ActionListItemDescriptor, ActionListSection } from '../../types'; import type { ItemProps } from './components'; 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?: 'menuitem' | string; /** Allow users to filter items in the list. Will only show if more than 8 items in the list. The item content of every items must be a string for this to work */ allowFiltering?: boolean; /** Filter label used as a placeholder in the search field */ filterLabel?: string; /** Callback when any item is clicked or keypressed */ onActionAnyItem?: ActionListItemDescriptor['onAction']; } export type ActionListItemProps = ItemProps; export declare function ActionList({ items, sections, actionRole, allowFiltering, onActionAnyItem, filterLabel, }: ActionListProps): React.JSX.Element; export declare namespace ActionList { var Item: typeof import("./components").Item; } //# sourceMappingURL=ActionList.d.ts.map