UNPKG

@pagopa/mui-italia

Version:

[Material-UI](https://mui.com/core/) theme inspired by [Bootstrap Italia](https://italia.github.io/bootstrap-italia/).

16 lines (15 loc) 661 B
import { SxProps } from "@mui/system"; export type Variants = "default" | "light"; export type Colors = "default" | "primary" | "warning" | "error" | "info" | "success"; export interface TagProps { /** Content of the component */ value: string; /** Variant of the colour. You can set `Light` variant if * you want a washed out variant of the color. */ variant?: Variants; /** Color of the component. It supports default neutral color, * primary color and status colours (warning, info, etc…). */ color?: Colors; sx?: SxProps; } export declare const Tag: ({ value, color, variant, sx, ...rest }: TagProps) => JSX.Element;