1.2.6 • Published 4 years ago

@kor-ui/pane v1.2.6

Weekly downloads
23
License
MIT
Repository
github
Last release
4 years ago

kor

Visit www.kor-ui.com for samples, APIs and other design/development documentation

A design system / UI component library built with LitElement. Based on the web components standards, kor is browser-, framework- and OS-agnostic and can be used to build web, desktop and mobile applications using Angular, Vue, React, plain JS and so on.

Installation

Install the library through npm:

npm install @kor-ui/kor --save

Integration of Components

Load the whole bundle

The most simple and common way of including the components into an application is by loading the core bundle:

<!-- include whole js bundle in index.html -->
<script type="text/javascript" charset="utf-8" src="node_modules/@kor-ui/kor/index.js"></script>

<!-- include stylesheet in index.html -->
<link rel="stylesheet" type="text/css" href="node_modules/@kor-ui/kor/kor-styles.css">

or

// include js bundle through js import instead
import '@kor-ui/kor' 

Lazy load

As an alternative, you can also install and load individual components to reduce loading time (stylesheet still needs to be included in addition to the following steps):

npm install @kor-ui/button --save
npm install @kor-ui/accordion --save
<!-- include components in html file -->
<script type="text/javascript" charset="utf-8" src="node_modules/@kor-ui/button/index.js"></script>
<script type="text/javascript" charset="utf-8" src="node_modules/@kor-ui/accordion/index.js"></script>

or

// include individual components through js import
import { korButton } from '@kor-ui/button' 
import { korAccordion } from '@kor-ui/accordion' 

Usage

Use the kor components as if they were native HTML tags. All components allow one and two-way data binding and the attributes fire an attribute-changed event when modified:

<kor-button label="Hello World" color="secondary" disabled></kor-button>
<!-- data binding -->
<kor-accordion [label]="myVar" (expanded-changed)="myFunction()"></kor-accordion>
1.2.6

4 years ago

1.2.5

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.10

4 years ago

1.1.7

4 years ago

1.1.2

4 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.6

5 years ago

0.0.5-alpha.0

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.4-alpha.0

5 years ago

0.0.5

5 years ago

1.0.4

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.3

5 years ago