Buttons

Scaffold ButtonsWill you be my button?

  1. Basic Buttons
  2. svelte
    Loading...

    You may also customize it via the style prop. To avoid side effects, use the unstyled prop.

    svelte
    Loading...

    Form Submission Example

    svelte
    Loading...
  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...
  5. Hamburger Button
  6. svelte
    Loading...

    Component API

    PropTypeDefault
    widthstring30px
    heightstring3px
    colorstringblack
    bradiusstring5px
    spacingstring5px
  7. Theme Button
  8. The theme button directly manipulates the Theme Store.

    svelte
    Loading...
  9. WhatsApp Share
  10. When clicked, the button will attempt to share the link on WhatsApp. Your website information is best displayed if Open Graph (OG) tags are configured.

    If the share fails, it falls back to copying the link.

    svelte
    Loading...
  11. Basic Button API
  12. Component API

    PropTypeDefaultDescription
    typestring (button, submit, reset)'button'
    onclick={() => your_function()}function(s)Function or functions triggered when the button is clicked.
    colorstring (primary, warning, error)'primary'Sets the color scheme, used with variant to determine visual appearance.
    variantstring (contained, outlined)'contained'Defines the button style variant.
    stylestring (Vanilla CSS)""Custom CSS styles for the button.
    unstyledbooleanfalseWhen set to true, removes all default styling from the button.
    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.
  13. Custom Button API
  14. Component API

    Import NamePropDefault
    ButtonSwipebgvar(--ss-neutral)
    colorvar(--ss-d-p)
    swipeColorvar(--ss-l-p)
    ButtonMarqueebgvar(--ss-neutral)
    colorvar(--ss-d-p)
    ButtonFlipfrontfront
    backback
    bgFront & bgBackvar(--ss-neutral)
    colorvar(--ss-l-p)
Edit Page

Last Updated: -


Previous

Next

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