interface LinkButtonProps {
    badge?: boolean;
    children?: ReactNode;
    component: "link";
    disabled?: boolean;
    fontWeight?: "medium" | "bold" | "normal" | "light";
    form?: string;
    icon?: ReactElement<unknown, string | JSXElementConstructor<any>>;
    inline?: boolean;
    lowercase?: boolean;
    noPadding?: boolean;
    onClick?: () => void;
    role?: AriaRole;
    size?: "medium" | "small" | "tiny" | "large" | "huge";
    title?: string;
    to: To;
    variant?:
        | "link"
        | "primary"
        | "secondary"
        | "subscription"
        | "tertiary"
        | "quaternary";
}

Hierarchy

  • ButtonBaseProps
    • LinkButtonProps

Properties

badge?: boolean

If true, shows a dot indicating that there is something new.

Refs: https://setproduct.com/blog/badge-ui-design

children?: ReactNode
component: "link"
disabled?: boolean
fontWeight?: "medium" | "bold" | "normal" | "light"

Legt das Schriftgewicht des Buttons fest.

"normal"
form?: string
icon?: ReactElement<unknown, string | JSXElementConstructor<any>>
inline?: boolean
lowercase?: boolean

Wenn true, wird der Text in Kleinbuchstaben angezeigt.

false
noPadding?: boolean
onClick?: () => void

Also available on the link, so we can implement a share button that links to a URL and can trigger a share functionality.

If you want to use this, really think it through. Maybe you want to use a component="button" instead.

role?: AriaRole
size?: "medium" | "small" | "tiny" | "large" | "huge"
title?: string
to: To
variant?:
    | "link"
    | "primary"
    | "secondary"
    | "subscription"
    | "tertiary"
    | "quaternary"