8.0.0-beta.3 • Published 6 months ago

@smui/button v8.0.0-beta.3

Weekly downloads
1,718
License
Apache-2.0
Repository
github
Last release
6 months 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.

8.0.0-beta.0

7 months ago

8.0.0-beta.2

6 months ago

8.0.0-beta.1

6 months ago

8.0.0-beta.3

6 months ago

8.0.0-alpha.0

1 year ago

7.0.0

1 year ago

7.0.0-beta.18

1 year ago

7.0.0-beta.17

1 year ago

7.0.0-beta.16

1 year ago

7.0.0-beta.11

2 years ago

7.0.0-beta.12

2 years ago

7.0.0-beta.13

2 years ago

7.0.0-beta.14

2 years ago

7.0.0-beta.10

2 years ago

7.0.0-beta.15

2 years ago

7.0.0-beta.9

2 years ago

7.0.0-beta.6

2 years ago

7.0.0-beta.7

2 years ago

7.0.0-beta.4

2 years ago

7.0.0-beta.5

2 years ago

7.0.0-beta.8

2 years ago

7.0.0-beta.2

2 years ago

7.0.0-beta.3

2 years ago

7.0.0-beta.1

2 years ago

7.0.0-beta.0

3 years ago

6.1.4

3 years ago

6.1.0

3 years ago

6.0.0

3 years ago

6.0.0-beta.16

3 years ago

6.0.0-beta.15

3 years ago

6.0.0-beta.14

3 years ago

6.0.0-beta.13

3 years ago

6.0.0-beta.12

3 years ago

6.0.0-beta.11

3 years ago

6.0.0-beta.7

4 years ago

6.0.0-beta.8

4 years ago

6.0.0-beta.9

4 years ago

6.0.0-beta.3

4 years ago

6.0.0-beta.4

4 years ago

6.0.0-beta.5

4 years ago

6.0.0-beta.6

4 years ago

6.0.0-beta.0

4 years ago

6.0.0-beta.1

4 years ago

6.0.0-beta.2

4 years ago

6.0.0-beta.10

3 years ago

5.0.1

4 years ago

5.0.0

4 years ago

5.0.0-beta.8

4 years ago

5.0.0-beta.6

4 years ago

5.0.0-beta.7

4 years ago

5.0.0-beta.4

4 years ago

5.0.0-beta.5

4 years ago

5.0.0-beta.3

4 years ago

5.0.0-beta.0

4 years ago

5.0.0-beta.1

4 years ago

4.2.0

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

3.1.0

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

3.0.0-beta.11

4 years ago

3.0.0-beta.12

4 years ago

3.0.0-beta.9

4 years ago

3.0.0-beta.10

4 years ago

3.0.0-beta.7

4 years ago

3.0.0-beta.8

4 years ago

3.0.0-beta.5

4 years ago

3.0.0-beta.6

4 years ago

3.0.0-beta.3

4 years ago

3.0.0-beta.4

4 years ago

3.0.0-beta.1

4 years ago

3.0.0-beta.0

4 years ago

3.0.0-beta.2

4 years ago

2.0.0-beta.1

4 years ago

2.0.0-beta.0

4 years ago

2.0.0-alpha.0

4 years ago

1.1.0

4 years ago

1.0.0

5 years ago

1.0.0-beta.21

5 years ago

1.0.0-beta.20

5 years ago

1.0.0-beta.19

6 years ago

1.0.0-beta.18

6 years ago

1.0.0-beta.17

6 years ago

1.0.0-beta.16

6 years ago

1.0.0-beta.15

6 years ago

1.0.0-beta.14

6 years ago

1.0.0-beta.12

6 years ago

1.0.0-beta.11

6 years ago

1.0.0-beta.10

6 years ago

1.0.0-beta.9

6 years ago

1.0.0-beta.8

6 years ago