import React from "react"; import { PlusButton as PlusButtonElement } from "../dist/components/button/index.js"; export type { PlusButtonElement }; export interface PlusButtonProps extends Pick< React.AllHTMLAttributes, | "children" | "dir" | "hidden" | "id" | "lang" | "slot" | "style" | "title" | "translate" | "onClick" | "onFocus" | "onBlur" > { /** Disables the button interaction */ disabled?: boolean; /** Shows loading spinner and disables interaction */ loading?: boolean; /** undefined */ fullWidth?: boolean; /** When true, link opens in new tab with secure attributes Automatically sets target="_blank" and rel="noopener noreferrer" */ external?: boolean; /** Determines the visual style of the button - filled: Solid background color - outlined: Transparent background with border - dashed: Transparent background with dashed border - text: Text only without background or border */ kind?: PlusButtonElement["kind"]; /** Sets the status/color variant of the button - default: Neutral color scheme - primary: Brand color scheme - success: Green color scheme - warning: Yellow color scheme - danger: Red color scheme - info: Blue color scheme */ status?: PlusButtonElement["status"]; /** Sets the size of the button - sm: Small size - md: Medium size - lg: Large size */ size?: PlusButtonElement["size"]; /** When provided, renders as an anchor link instead of a button */ href?: PlusButtonElement["href"]; /** Specifies where to display the linked URL Common values: _blank, _self, _parent, _top */ target?: PlusButtonElement["target"]; /** Specifies the relationship between the current document and the linked document Common values: nofollow, noopener, noreferrer */ rel?: PlusButtonElement["rel"]; /** Sets the link to download the target URL instead of navigating Optional value specifies the suggested filename */ download?: PlusButtonElement["download"]; /** Specifies the button type for form interactions Only applies when rendering as a button (no href) */ type?: PlusButtonElement["type"]; /** A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method `Document.getElementsByClassName()`. */ className?: string; /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */ exportparts?: string; /** Used for labels to link them with their inputs (using input id). */ htmlFor?: string; /** Used to help React identify which items have changed, are added, or are removed within a list. */ key?: number | string; /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */ part?: string; /** A mutable ref object whose `.current` property is initialized to the passed argument (`initialValue`). The returned object will persist for the full lifetime of the component. */ ref?: any; /** Allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the `Tab` key, hence the name) and determine their relative ordering for sequential focus navigation. */ tabIndex?: number; } /** * * --- * */ export const PlusButton: React.ForwardRefExoticComponent;