Button

The Button component replaces the standard html button with a material deisgn theme and a multitude of options. Any color helper class can be used to alter the background or text color.

Playground

Buttons in their simplest form contain uppercase text, a slight elevation, hover effect, and a ripple effect on click.

Options

API

Examples

Below is a collection of simple to complex examples.

Raised

This is the default one

Depressed

These are just buttons with no box shadow

Block

Big bois

Floating Action Buttons

Floating buttons are rounded and usually contain an icon.

Icon

Icons can be used for the primary content of a button.

Outlined

Outlined buttons inherit their borders from the current color applied.

Rounded

Rounded buttons behave the same as regular buttons but have rounded edges.

Text

Text buttons have no box shadow and no background. Only on hover is the container for the button shown.

Tile

Tile buttons behave the same as regular buttons but have no border radius.

Sizing

Buttons can be given different sizing options to fit a multitude of scenarios. We do not set font sizes for icons as different icon packs look differently

Ready For More?

Continue to learn more about svelte materialify with content selected by the creator.



Last Updated: 2022-10-03