@tolokoban/ui
Version:
React components with theme
24 lines • 779 B
TypeScript
import * as React from "react";
import { ColorStyleProps } from "../../theme";
/**
* @see https://material.io/components/chips#input-chips
*/
declare const SIZES: Record<string, number>;
export interface ViewChipProps<T = unknown> extends ColorStyleProps {
className?: string;
/** Default to false. */
outline?: boolean;
/** Default to false. */
removable?: boolean;
/** Default to true. */
enabled?: boolean;
size?: keyof typeof SIZES;
label: string;
thumbnail?: React.ReactNode;
tag?: T;
onClick?(this: void, tag?: T): void;
onRemove?(this: void, tag?: T): void;
}
export declare function ViewChip<T = unknown>(props: ViewChipProps<T>): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=Chip.d.ts.map