@vela-ui/react
Version:
Vela UI React components
28 lines (25 loc) • 1.52 kB
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import * as tailwind_variants from 'tailwind-variants';
import { VariantProps } from 'tailwind-variants';
declare const alertVariants: tailwind_variants.TVReturnType<{
variant: {
default: string;
destructive: string;
};
}, undefined, "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
variant: {
default: string;
destructive: string;
};
}, undefined, tailwind_variants.TVReturnType<{
variant: {
default: string;
destructive: string;
};
}, undefined, "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", unknown, unknown, undefined>>;
interface AlertProps extends React.ComponentProps<"div">, VariantProps<typeof alertVariants> {
}
declare function Alert({ className, variant, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
export { Alert, AlertDescription, type AlertProps, AlertTitle };