UNPKG

@blocklet/ui-react

Version:

Some useful front-end web components that can be used in Blocklets.

15 lines (14 loc) 771 B
import { LiteralUnion } from 'type-fest'; import { Theme } from '@mui/material'; import { AppBadgeDefaultProps } from './app-badge-default'; export type ColorKey = 'primary' | 'info' | 'success' | 'error' | 'warning'; export type BadgeColor = LiteralUnion<ColorKey, string>; export declare const colorMap: Record<ColorKey, (theme: Theme) => { main: string; }>; export declare const getBgColor: (theme: Theme, color: BadgeColor) => string; export declare const getTextColor: (theme: Theme, color: BadgeColor) => string; export interface AppBadgeVersionProps extends AppBadgeDefaultProps { color?: string | ColorKey; } export declare function AppBadgeVersion({ icon, value, color, loading, ...rest }: AppBadgeVersionProps): import("react/jsx-runtime").JSX.Element;