@youwen/ai-design-system
Version:
Enterprise AI-driven design system with comprehensive design tokens
18 lines (17 loc) • 1.22 kB
TypeScript
import * as React from "react";
import { type VariantProps } from "class-variance-authority";
declare const widgetGeneralVariants: (props?: ({
size?: "auto" | "standard" | null | undefined;
padding?: "base" | "none" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
export interface WidgetGeneralProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof widgetGeneralVariants> {
content?: React.ReactNode;
icon?: React.ReactNode;
status?: "normal" | "warning" | "error" | "success";
contentType?: "text" | "number" | "status" | "custom";
layout?: "leftTop" | "rightTop" | "leftBottom" | "rightBottom" | "leftTop,rightTop" | "leftTop,leftBottom" | "leftTop,rightBottom" | "rightTop,leftBottom" | "rightTop,rightBottom" | "leftBottom,rightBottom" | "leftTop,rightTop,leftBottom" | "leftTop,rightTop,rightBottom" | "leftTop,leftBottom,rightBottom" | "rightTop,leftBottom,rightBottom" | "all";
size?: "standard" | "auto";
padding?: "none" | "base";
}
declare const WidgetGeneral: React.ForwardRefExoticComponent<WidgetGeneralProps & React.RefAttributes<HTMLDivElement>>;
export { WidgetGeneral, widgetGeneralVariants };