Logo

Sierra-95/svelte-ui

Custom Buttons

Custom Buttons

These buttons are not built to be as flexible compared to default buttons.

  1. They don’t support on:click() or aliases, since they are built with <a> tags.
  2. They are designed to be used as-is, with minimal customization options.
  3. All have fixed dimensions (w × h), with Marquee as the exception. Marquee automatically adjusts its width based on text length.
svelte
Loading...
Import NamePropTypeDefault
ButtonSwipelinkstring#
textstringButton
bg / colorstringvar(--primary-bg)/ #4B5563
ButtonMarqueelinkstring#
textstringHover me
bg / colorstringvar(--primary-bg)/ #4B5563
ButtonFliplinkstring#
frontstringfront
backstringback
bgFrontstringvar(--primary-bg)
bgBack / colorstring#f4e5d4 / var(--button-text)