New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@smui/button

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smui/button

Svelte Material UI - Button

  • 1.0.0-beta.17
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.7K
decreased by-36.26%
Maintainers
1
Weekly downloads
 
Created
Source

Svelte Material UI - Button

An interactive button or link.

See MDC Buttons for more information on API and Sass mixins.

See the Sass variable file for styling variables.

Installation

npm install --save-dev @smui/button

Basic Usage

<script>
  import Button, {Label} from '@smui/button';

  function doSomething() {
    alert('something');
  }
</script>

<Button on:click={doSomething}>
  <Label>Do Something</Label>
</Button>

Demo

in action: https://sveltematerialui.com/demo/button

demo code: https://github.com/hperrin/svelte-material-ui/blob/master/site/src/routes/demo/button.svelte

Exports

(default)

A button.

Options / Defaults

  • use: [] - An array of actions and/or action/property arrays.
  • 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')
  • dense: false - Whether to style the button as dense.
  • href: null - 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.

Events

All standard UI events are forwarded.

Group

A button group.

Options / Defaults

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

Events

All standard UI events are forwarded.

GroupItem

A group item Svelte action. Used for containing a button in a group. This can be useful for containing menus along with the button.

Label

A text label.

See the common label readme.

Icon

A graphic icon.

See the common icon readme.

Keywords

FAQs

Package last updated on 28 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc