UNPKG

@vela-ui/react

Version:

Vela UI React components

41 lines (38 loc) 1.53 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import * as tailwind_variants from 'tailwind-variants'; import { VariantProps } from 'tailwind-variants'; import { Link as Link$1 } from 'react-aria-components'; import { buttonVariants } from './button.mjs'; declare const linkVariants: tailwind_variants.TVReturnType<{ variant: { hover: string; underline: string; none: string; }; isDisabled: { true: string; }; }, undefined, "underline-offset-4 outline-0 outline-offset-2 outline-current focus-visible:outline-2", { variant: { hover: string; underline: string; none: string; }; isDisabled: { true: string; }; }, undefined, tailwind_variants.TVReturnType<{ variant: { hover: string; underline: string; none: string; }; isDisabled: { true: string; }; }, undefined, "underline-offset-4 outline-0 outline-offset-2 outline-current focus-visible:outline-2", unknown, unknown, undefined>>; type LinkProps = React.ComponentProps<typeof Link$1> & VariantProps<typeof linkVariants>; declare function Link({ className, variant, ...props }: LinkProps): react_jsx_runtime.JSX.Element; type LinkButtonProps = React.ComponentProps<typeof Link$1> & Omit<VariantProps<typeof buttonVariants>, "isPending">; declare function LinkButton({ className, variant, size, shape, ...props }: LinkButtonProps): react_jsx_runtime.JSX.Element; export { Link, LinkButton, type LinkButtonProps, type LinkProps };