@project44-manifest/react
Version:
Manifest Design System react components
29 lines • 889 B
TypeScript
import * as React from 'react';
import { As, Options, Props } from '../../system';
import type { StyleProps } from '../../types';
export declare type PillElement = 'div';
export interface PillOptions<T extends As = PillElement> extends Options<T>, StyleProps {
/**
* The color scheme of the pill
*
* @default 'indigo'
*/
colorScheme?: 'grey' | 'indigo' | 'pink' | 'red' | 'yellow';
/**
* The icon to render in the pill.
*/
icon?: React.ReactNode;
/**
* Whether the pill is collapsible.
*
* @default 'false'
*/
isCollapsible?: boolean;
/**
* The text label of the pill.
*/
label?: React.ReactNode;
}
export declare type PillProps<T extends As = PillElement> = Props<PillOptions<T>>;
export declare const Pill: import("../../system").Component<PillOptions<"div">>;
//# sourceMappingURL=Pill.d.ts.map