@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
12 lines (11 loc) • 535 B
TypeScript
import React from "react";
import { IconColorsType } from "../Icon";
type BaseColor = "base" | "accent" | "warning" | "error" | "success" | "connect" | "keyExchange" | "disabled" | "info" | "driver" | "owner";
type WithBackgroundColor = `${BaseColor}Alt`;
export type ContainedIconPropsType = {
icon: React.JSX.Element;
color?: IconColorsType | BaseColor | WithBackgroundColor;
className?: string;
};
export declare function ContainedIcon({ icon, color, className, }: ContainedIconPropsType): React.JSX.Element;
export {};