UNPKG

617 BTypeScriptView Raw
1import { FunctionComponent } from 'react';
2declare type Colors = string[] | {
3 [key: string]: string;
4};
5interface ColorProps {
6 title: string;
7 subtitle: string;
8 colors: Colors;
9}
10/**
11 * A single color row your styleguide showing title, subtitle and one or more colors, used
12 * as a child of `ColorPalette`.
13 */
14export declare const ColorItem: FunctionComponent<ColorProps>;
15/**
16 * Styleguide documentation for colors, including names, captions, and color swatches,
17 * all specified as `ColorItem` children of this wrapper component.
18 */
19export declare const ColorPalette: FunctionComponent;
20export {};