@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
12 lines (11 loc) • 613 B
TypeScript
import React from "react";
import { IconColorsType } from "../Icon";
type Extends<T, U extends T> = U;
type ContainedIconColorType = Extends<IconColorsType, "base" | "accent" | "disabled" | "error" | "info" | "success" | "connect" | "keyExchange" | "rideshare" | "accentAlt" | "disabledAlt" | "errorAlt" | "infoAlt" | "successAlt" | "connectAlt"> | "baseAlt";
export type ContainedIconPropsType = {
icon: React.JSX.Element;
color?: ContainedIconColorType;
className?: string;
};
export declare function ContainedIcon({ icon, color, className, }: ContainedIconPropsType): React.JSX.Element;
export {};