UNPKG

@spark-ui/components

Version:

Spark (Leboncoin design system) components.

21 lines (18 loc) 1.03 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import * as class_variance_authority_types from 'class-variance-authority/types'; import { VariantProps } from 'class-variance-authority'; import { ComponentPropsWithRef } from 'react'; declare const textLinkStyles: (props?: ({ intent?: "main" | "current" | "support" | "accent" | "basic" | "success" | "alert" | "danger" | "info" | "neutral" | null | undefined; bold?: boolean | null | undefined; underline?: boolean | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; type StylesProps = VariantProps<typeof textLinkStyles>; type TextLinkProps = ComponentPropsWithRef<'a'> & StylesProps & { /** * Change the component to the HTML tag or custom component of the only child. */ asChild?: boolean; }; declare const TextLink: ({ asChild, bold, children, className, intent, underline, ref, ...props }: TextLinkProps) => react_jsx_runtime.JSX.Element; export { type StylesProps, TextLink, type TextLinkProps };