Sépale
Components Docs Theme generator Prefix About GitHub npm
  • Family
  • Family
  • Theme

  • Guide
  • Getting started
  • Families and themes
  • Components and classes
  • Svelte components
  • Motion
  • Your own styles
  • Class prefix
  • Family
  • Description
  • Theme generator
  • Components
  • All components
    • Button
    • Link
    • Join
    • Input
    • Textarea
    • Select
    • Combobox
    • Number input
    • Date picker
    • Calendar
    • Color picker
    • File input
    • File dropzone
    • Checkbox
    • Radio
    • Toggle
    • Switch
    • Range
    • Rating
    • Chips input
    • Editable
    • Label
    • Floating label
    • Fieldset
    • Validator
    • Text
    • Avatar
    • Badge
    • Chip
    • Swatch
    • Bubble
    • Card
    • Stat
    • Carousel
    • Alert
    • Toast
    • Loading
    • Progress
    • Radial progress
    • Skeleton
    • Empty state
    • Data handler
    • Data control
    • Table
    • Grid
    • List
    • Kanban
    • File explorer
    • Menu
    • Tabs
    • Breadcrumbs
    • Steps
    • Pagination
    • Dock
    • Navbar
    • Sidebar
    • Drawer
    • Footer
    • Hero
    • Divider
    • Collapse
    • Accordion
    • Dialog
    • Dropdown
    • Tooltip
    • Mobile frame
    • Window frame
    • Laptop frame

Button

The thing you press. Sized from its own font-size, so a button in a larger context grows without a breakpoint.

ClassEffectType
.btn
The thing you press. Sized from its own font-size, so a button in a larger context grows without a breakpoint. root
.btn-outline.btn-dash.btn-soft.btn-ghost.btn-link.btn-classic.btn-surface
Sets variant, one class per value. axis variant
.btn-primary.btn-neutral.btn-info.btn-success.btn-warning.btn-error
Sets color, one class per value. axis color
.btn-square.btn-circle
Sets shape, one class per value. axis shape
.btn-wide.btn-block
Sets width, one class per value.
  • .btn-block Full width of its container.
  • .btn-wide Wider than its content, without filling the row.
axis width
.btn-xxs.btn-xs.btn-sm.btn-md.btn-lg.btn-xl.btn-xxl.btn-xxxl
Sets size, one class per value. axis size
.btn-active
Draw it as the current choice without it being pressed. flag
.btn-disabled
For an <a>, which cannot carry the disabled attribute. part
.btn-ripple
Arm the press wave; the wave itself is drawn by the component. part
.btn-ripple-wave
One wave, positioned at the press point and removed once the family's motion on it has run (at once if it draws none). part