@firecms/ui
Version:
Awesome Firebase/Firestore-based headless open-source CMS
23 lines (22 loc) • 646 B
TypeScript
import React from "react";
import { CHIP_COLORS } from "../util";
export type ChipColorScheme = {
color: string;
text: string;
};
export type ChipColorKey = keyof typeof CHIP_COLORS;
export interface ChipProps {
className?: string;
children: React.ReactNode;
size?: "small" | "medium" | "large";
colorScheme?: ChipColorScheme | ChipColorKey;
error?: boolean;
outlined?: boolean;
onClick?: () => void;
icon?: React.ReactNode;
style?: React.CSSProperties;
}
/**
* @group Preview components
*/
export declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLDivElement>>;