JSPM

  • Created
  • Published
  • Downloads 98
  • Score
    100M100P100Q85996F
  • License MIT

A button component of responsive-ui.

Package Exports

  • @responsive-ui/button
  • @responsive-ui/button/src/Button.svelte

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@responsive-ui/button) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@responsive-ui/button

A button component of responsive-ui.

Svelte v3 npm Bundle Size download LICENCE

Install

npm install @responsive-ui/button

or

yarn add @responsive-ui/button

Look and Feel

@responsive-ui/button

Properties, Events & Slots

interface ButtonProps {
  label?: string;
  name?: string;
  type?: "button" | "submit" | "reset";
  class?: string;
  disabled?: boolean;
  form?: string;
  style?: string;
}

interface ButtonEvents {
  click?: any;
}

interface ButtonSlots {
  default: {};
}

declare class Button extends SvelteComponentTyped<
  ButtonProps,
  ButtonEvents,
  ButtonSlots
> {}

Example

<script>
  import Button from '@responsive-ui/button';

  const onClick = () => {
    console.log("clicked!");
  }
</script>

<Button label="Click me" on:click={onClick}></Button>

Try it yourself in Svelte Repl

Sponsors

WeTix

License

@responsive-ui/button is 100% free and open-source, under the MIT license.

Big Thanks To

Thanks to these awesome companies for their support of Open Source developers ❤

GitHub NPM