UNPKG

@combine-labs/combine-polaris

Version:

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

18 lines (17 loc) 592 B
/// <reference types="react" /> import { Props as IconProps } from '../Icon'; export interface Props { /** The content to display inside the key */ children?: string; /** Primary data */ data: string; /** Secondary data (optional) */ secondaryData?: string; /** Text for the label */ label: string; /** Icon to display to the left of the content */ icon?: IconProps['source']; /** Icon color */ iconColor?: IconProps['color']; } export default function DataField({ children, data, secondaryData, label, icon, iconColor, }: Props): JSX.Element;