Will you be my button?

Buttons
  1. Default Buttons
  2. svelte
    Loading...

    You may also customize it using Tailwind via the style prop. To use your own color palette, set the color prop to "none".

    svelte
    Loading...

    Form Submission Example

    svelte
    Loading...

    Component API

    PropTypeDefaultDescription
    titlestring''The button label content.
    typestring (button, submit, reset)'button'
    onclick={() => your_function()}function(s)Function or functions triggered when the button is clicked.
    colorstring (primary, warning, error, none)'primary'Sets the color scheme, used with variant to determine visual appearance.
    variantstring (contained, outlined)'contained'Defines the button style variant.
    stylestring (Tailwind only)""Tailwind utility classes for custom styling.
    startIcon & endIconstring (Font Awesome only)""Icons to display at the start or end of the button.
    disabledbooleanfalseDisables the button and blocks onClick actions.
    isLoadingbooleanfalseDisplays a spinner. Automatically disables the button while loading.
    pillbooleanfalseIf true, applies full rounding (Tailwind rounded-full) to make the button pill-shaped.
    spinnernumber20Controls the size of the loading spinner (in pixels) when isLoading is active.
    thicknessnumber2Defines the stroke thickness of the spinner icon (applies when isLoading is active)
    html2canvas_ignorestring (true, false)'false'When set to 'true', activates data-html2canvas-ignore to exclude the button from screenshots.
  3. Custom Buttons
  4. These buttons are not built to be as flexible compared to default buttons.

    They are designed to be used as-is, with minimal customization options.

    All have fixed dimensions (w × h), with Marquee as the exception. Marquee automatically adjusts its width based on text length.

    svelte
    Loading...

    Component API

    Import NamePropTypeDefault
    ButtonSwipetextstringButton
    bg / colorstringvar(--primary-bg)/ #4B5563
    ButtonMarqueetextstringHover me
    bg / colorstringvar(--primary-bg)/ #4B5563
    ButtonFlipfrontstringfront
    backstringback
    bgFrontstringvar(--primary-bg)
    bgBack / colorstring#f4e5d4 / var(--button-text)
  5. Hamburger Button
  6. View the Prebuilt Hamburger Menu
    svelte
    Loading...

    Component API

    PropTypeDefault
    barWidthstring30px
    barHeightstring3px
    barColorstringblack
    barBorderRadiusstring5px
    barSpacingstring5px
  7. Theme Button
  8. The theme button directly manipulates the Theme Store.

    svelte
    Loading...
  9. Item Selected & Close
Edit Page

Last Updated: -

© 2026 @sierra-95/svelte-scaffold. All rights reserved.