UNPKG

@cn-ui/core

Version:

The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.

30 lines (29 loc) 745 B
export interface useResultProps { type?: "success" | "info" | "warning" | "error"; } export declare const useResultState: (props: useResultProps) => { classMapper: import("@cn-ui/reactive").ComputedAtom<{ text: string; bg: string; subBg: string; } | { text: string; bg: string; subBg: string; } | { text: string; bg: string; subBg: string; } | { text: string; bg: string; subBg: string; } | { text: string; bg: string; subBg: string; }>; }; export declare const useResultIcon: (props: useResultProps) => { iconMapper: import("@cn-ui/reactive").ComputedAtom<import("solid-js").JSX.Element>; };