@hackplan/polaris
Version:
Shopify’s product component library
7 lines (6 loc) • 478 B
TypeScript
import React from 'react';
import { ComplexAction } from '../../types';
import { Props } from './Button';
export declare function buttonsFrom(action: ComplexAction, overrides?: Partial<Props>): React.ReactElement<Props>;
export declare function buttonsFrom(actions: ComplexAction[], overrides?: Partial<Props>): React.ReactElement<Props>[];
export declare function buttonFrom({ content, onAction, ...action }: ComplexAction, overrides?: Partial<Props>, key?: any): JSX.Element;