UNPKG

@blocklet/ui-react

Version:

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

21 lines (20 loc) 1.09 kB
import { BoxProps } from '@mui/material'; import { TBox } from '@arcblock/ux/lib/MuiWrap'; export declare const isExternal: (to?: string) => boolean; export declare const isSameOrigin: (to: string) => boolean; export declare const StateIcon: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & { color: string; }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>; export declare const StyledBadge: typeof TBox; export interface BadgeContainerProps extends Omit<BoxProps, 'to'> { loading?: boolean; to?: string; } export declare function BadgeContainer({ loading, children, to, ...rest }: BadgeContainerProps): import("react/jsx-runtime").JSX.Element; export interface AppBadgeDefaultProps extends BadgeContainerProps { icon?: string; label?: string; value?: string | number; round?: number; } export declare function AppBadgeDefault({ icon, label, value, loading, ...rest }: AppBadgeDefaultProps): import("react/jsx-runtime").JSX.Element;