UNPKG

@combine-labs/combine-polaris

Version:

Combine Lab's product component library. Forked from Shopify's Polaris.

17 lines (16 loc) 793 B
import * as React from 'react'; import { WithAppProviderProps } from '../AppProvider'; export declare type Status = 'success' | 'info' | 'attention' | 'warning' | 'new' | 'danger'; export declare type Progress = 'incomplete' | 'partiallyComplete' | 'complete'; export interface Props { /** The content to display inside the badge. */ children?: string; /** Set the color of the badge for the given status. */ status?: Status; /** Render a pip showing the progress of a given task. */ progress?: Progress; } export declare type CombinedProps = Props & WithAppProviderProps; declare function Badge({ children, status, progress, polaris: { intl } }: CombinedProps): JSX.Element; declare const _default: React.ComponentClass<Props> & typeof Badge; export default _default;