1.1.0 • Published 6 years ago

zen-svelte-ui v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

ZEN SVELTE UI

Features

  • Based on Svelte
  • Lightweight
  • Support modern browsers and IE 12+

Installation

npm install zen-svelte-ui

Usage

In .svelte file

ZenButton

<script>
    import { ZenButton } from 'zen-svelte-ui';
</script>

<ZenButton on:click={() => console.log('hello')} type="success" hollow>Hello world!</ZenButton>
PropertyDescriptionTypeAccepted ValuesDefault
typeThe button styleStringprimary, successprimary
widthButton widthStringcss width values100%
roundedRound cornersBooleantrue, falsefalse
disabledDisabling style and cancel click eventBooleantrue, falsefalse
hollowHollow styleBooleantrue, falsefalse
SlotButton textStringany''

ZenInput

<script>
    import { ZenInput } from 'zen-svelte-ui';
    let name = '';
</script>

<ZenInput bind:value={name} placeholder="Your name" width="200px" status="error"></ZenInput>
PropertyDescriptionTypeAccepted ValuesDefault
typeThe input typeStringtext, passwordtext
widthInput widthStringcss width values100%
disabledDisabling style and inputBooleantrue, falsefalse
placeholderInput placeholderStringany''
statusStatus stylesStringinfo, success, error, warning''

ZenCheckbox

<script>
    import { ZenCheckbox } from 'zen-svelte-ui';
    let checked = false;
</script>

<ZenCheckbox bind:checked={checked}>Check this out!</ZenCheckbox>
PropertyDescriptionTypeAccepted ValuesDefault
disabledDisabling style and cancel check eventBooleantrue, falsefalse
SlotLabel textStringany''
1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago