sparc - v1.0.1
    Preparing search index...
    interface LinkButtonProps {
        class?: string;
        containerSelector?: string;
        id?: string;
        isDisabled?: boolean;
        isLoading?: boolean;
        isOutlined?: boolean;
        newTab?: boolean;
        squared?: boolean;
        title?: string;
        type?: "button" | "reset" | "submit";
        variant?: "primary" | "secondary" | "danger";
    }

    Hierarchy

    Index

    Properties

    class?: string

    Regular HTML class names

    containerSelector?: string

    Valid CSS selector targeting the current element's parent.

    const myElement = new Element({...,containerSelector:"#login-form",...})
    myElement.render() //my element will be appended to #login-form
    id?: string

    if a value is provided, sparc will not use automatic UUID generation!

    isDisabled?: boolean

    Use this boolean flag to toggle a css class disabling interactions with the component.

    isLoading?: boolean

    Use this boolean flag to toggle a css class while the async component loads.

    isOutlined?: boolean

    Applies the outlined styling variant.

    false
    
    newTab?: boolean
    squared?: boolean

    Sets equal width/height, useful for styling Icon Buttons.

    false
    
    title?: string

    Currently used as a tooltip. Displays the current value by default

    type?: "button" | "reset" | "submit"

    HTML attr. Defaults to "button"

    variant?: "primary" | "secondary" | "danger"

    Defines the element styling variant.

    "primary"