UNPKG

@baseplate-dev/ui-components

Version:

Shared UI component library

23 lines 948 B
import type { VariantProps } from 'class-variance-authority'; import type * as React from 'react'; import { buttonVariants } from '#src/styles/index.js'; export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> { asChild?: boolean; } /** * Displays a button or a component that looks like a button. * * - Added ghostDestructive variant * - Updated link variant to use primary color * - Added linkDestructive variant * - Added ability to set no size to the button * - Added ability to set justify to the button * - Default to type="button" if not provided * * https://ui.shadcn.com/docs/components/button */ declare function Button({ className, variant, size, justify, asChild, type, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & { asChild?: boolean; }): React.ReactElement; export { Button }; //# sourceMappingURL=button.d.ts.map