@szum-tech/design-system
Version:
Szum-Tech design system with tailwindcss support
25 lines (18 loc) • 1.1 kB
text/typescript
import * as React from 'react';
import { VariantProps } from 'class-variance-authority';
import * as class_variance_authority_types from 'class-variance-authority/types';
declare const statusVariants: (props?: {
variant?: "default" | "error" | "primary" | "success" | "warning";
} & class_variance_authority_types.ClassProp) => string;
type StatusCvaProps = VariantProps<typeof statusVariants>;
type StatusVariant = NonNullable<StatusCvaProps["variant"]>;
type StatusProps = React.ComponentProps<"div"> & {
asChild?: boolean;
variant?: StatusVariant;
};
declare function Status({ className, variant, asChild, ...rootProps }: StatusProps): React.JSX.Element;
type StatusIndicatorProps = React.ComponentProps<"div">;
declare function StatusIndicator(props: StatusIndicatorProps): React.JSX.Element;
type StatusLabelProps = React.ComponentProps<"div">;
declare function StatusLabel({ className, ...labelProps }: StatusLabelProps): React.JSX.Element;
export { Status, StatusIndicator, type StatusIndicatorProps, StatusLabel, type StatusLabelProps, type StatusProps, type StatusVariant };