7.0.0-beta.18 • Published 1 month ago

@smui/button v7.0.0-beta.18

Weekly downloads
1,718
License
Apache-2.0
Repository
github
Last release
1 month ago

Svelte Material UI - Button

An interactive button or link.

Installation

npm install --save-dev @smui/button

Examples and Usage Information

https://sveltematerialui.com/demo/button

Exports

(default)

A button.

Options / Defaults

  • component: href == null ? Button : A - A component to use as the root element.
  • use: [] - An array of Svelte actions and/or arrays of an action and its options.
  • class: '' - A CSS class string.
  • ripple: true - Whether to implement a ripple for when the component is interacted with.
  • color: 'primary' - The button's color. ('primary' or 'secondary')
  • variant: 'text' - The button's style variant. ('text', 'raised', 'unelevated', or 'outlined')
  • touch: false - Increase the touch target.
  • href: undefined - If the href property is set, the button will use an anchor element, instead of a button element.
  • action: 'close' - Used in the context of a dialog. This sets the button's action.
  • default: false - Used in the context of a dialog. This makes the button the default for the dialog.
  • secondary: false - Used in the context of a banner. This makes the button the secondary action for the banner.

Group

A button group.

Options / Defaults

  • use: [] - An array of Svelte actions and/or arrays of an action and its options.
  • class: '' - A CSS class string.
  • variant: 'text' - The button group's style variant. ('text', 'raised', 'unelevated', or 'outlined')

GroupItem

A Svelte action for a group item. Used for containing a button in a group. This can be useful for containing menus along with the button. If you are using this on an element that you are also defining classes on (or a component that defines classes internally), you need to provide addClass and removeClass functions.

Options / Defaults

  • addClass: (className) => node.classList.add(className) - A function to add a class to the element.
  • removeClass: (className) => node.classList.remove(className) - A function to remove a class to the element.

Label

A text label.

See the common label readme.

Icon

A graphic icon.

See the common icon readme.

More Information

See Buttons in the Material design spec.

See Button in MDC-Web for information about the upstream library's architecture.

7.0.0-beta.18

1 month ago

7.0.0-beta.17

2 months ago

7.0.0-beta.16

4 months ago

7.0.0-beta.11

10 months ago

7.0.0-beta.12

10 months ago

7.0.0-beta.13

10 months ago

7.0.0-beta.14

10 months ago

7.0.0-beta.10

10 months ago

7.0.0-beta.15

8 months ago

7.0.0-beta.9

10 months ago

7.0.0-beta.6

1 year ago

7.0.0-beta.7

1 year ago

7.0.0-beta.4

1 year ago

7.0.0-beta.5

1 year ago

7.0.0-beta.8

1 year ago

7.0.0-beta.2

1 year ago

7.0.0-beta.3

1 year ago

7.0.0-beta.1

1 year ago

7.0.0-beta.0

2 years ago

6.1.4

2 years ago

6.1.0

2 years ago

6.0.0

2 years ago

6.0.0-beta.16

2 years ago

6.0.0-beta.15

2 years ago

6.0.0-beta.14

2 years ago

6.0.0-beta.13

2 years ago

6.0.0-beta.12

2 years ago

6.0.0-beta.11

2 years ago

6.0.0-beta.7

2 years ago

6.0.0-beta.8

2 years ago

6.0.0-beta.9

2 years ago

6.0.0-beta.3

2 years ago

6.0.0-beta.4

2 years ago

6.0.0-beta.5

2 years ago

6.0.0-beta.6

2 years ago

6.0.0-beta.0

2 years ago

6.0.0-beta.1

2 years ago

6.0.0-beta.2

2 years ago

6.0.0-beta.10

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

5.0.0-beta.8

2 years ago

5.0.0-beta.6

3 years ago

5.0.0-beta.7

3 years ago

5.0.0-beta.4

3 years ago

5.0.0-beta.5

3 years ago

5.0.0-beta.3

3 years ago

5.0.0-beta.0

3 years ago

5.0.0-beta.1

3 years ago

4.2.0

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

3.1.0

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

3.0.0-beta.11

3 years ago

3.0.0-beta.12

3 years ago

3.0.0-beta.9

3 years ago

3.0.0-beta.10

3 years ago

3.0.0-beta.7

3 years ago

3.0.0-beta.8

3 years ago

3.0.0-beta.5

3 years ago

3.0.0-beta.6

3 years ago

3.0.0-beta.3

3 years ago

3.0.0-beta.4

3 years ago

3.0.0-beta.1

3 years ago

3.0.0-beta.0

3 years ago

3.0.0-beta.2

3 years ago

2.0.0-beta.1

3 years ago

2.0.0-beta.0

3 years ago

2.0.0-alpha.0

3 years ago

1.1.0

3 years ago

1.0.0

4 years ago

1.0.0-beta.21

4 years ago

1.0.0-beta.20

4 years ago

1.0.0-beta.19

4 years ago

1.0.0-beta.18

4 years ago

1.0.0-beta.17

5 years ago

1.0.0-beta.16

5 years ago

1.0.0-beta.15

5 years ago

1.0.0-beta.14

5 years ago

1.0.0-beta.12

5 years ago

1.0.0-beta.11

5 years ago

1.0.0-beta.10

5 years ago

1.0.0-beta.9

5 years ago

1.0.0-beta.8

5 years ago