Spelte

Open Github

Rich Button

A button component with rich styling and color variants.

Installation

pnpm dlx shadcn-svelte@latest add https://spelte.dev/r/rich-button.json

Examples

Color

Size

Props

PropTypeDefaultDescription
childrenSnippetrequiredThe content of the button.
color"default" | "blue" | "purple" | "pink" | "red" | "orange" | "yellow" | "green" | "teal" | "cyan" | "indigo" | "violet" | "rose" | "amber" | "lime" | "sky" | "slate" | "gray" | "zinc" | "neutral" | "stone" | "fuchsia" | "emerald""default"The color of the button - supports all Tailwind colors.
size"sm" | "default" | "lg""default"The size of the button.
classstring | undefinedundefinedAdditional CSS classes to apply.