@astar-network/astar-ui
Tech stack Vue3, SCSS, Storybook, Typescript, Vite
7,500
5
| Install | |
|---|---|
npm install @astar-network/astar-ui |
|
| Latest Version: | 0.0.142 |
| Vue: | 3 |
| Last Updated: | Oct 22, 2024 |
| Links: | GitHub · npm |
Maintainer: alan-astar
Astar-UI
Tech stack
Vue3, SCSS, Storybook, Typescript, Vite
Storybook
https://main--625fa762a035be003a9814c1.chromatic.com/
Project setup
Install
yarn install
Build Library
yarn build:lib
Run Storybook
yarn storybook
Build Storybook
yarn build-storybook
Run Play ground for testing (option)
yarn dev
Usage Of Components Built
As Component
import { Header } from 'astar-ui';
...
components:{
Header
}
As Plugin
import astarUI from 'astar-ui';
...
app.use(astarUI)
then use like
<astar-button @click="click" />
<astar-simple-modal>Test</astar-simple-modal>
How to contribute
Implement components in /packages
[DirectoryName]
> src
>> [Component.vue]
> index.ts (need to register as plugin, keep following the rule of component name :: app.component('astar-[component-name]', ComponentName) )
Implement story for the component in /src/stories
stories
> [DirectoryName]
>> [Component].stories.js
refer to: https://storybook.js.org/docs/vue/writing-stories/introduction
Run storybook in local
yarn storybook
Hot reloading support
Send PR for reviewing
Once it merged to main, it automatically deploy & publish to npm with new version in github action workflow and deployed storybook as well.
there's no need to update version manually or build library & storybook before sending PR.
View updated storybook
https://main--625fa762a035be003a9814c1.chromatic.com/
Use component in Vue project
Update latest ui library(astar-ui) version then use like
<astar-button @click="click" />
<astar-simple-modal>Test</astar-simple-modal>
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.142 | ^3.2.23 | ||
| 0.0.141 | ^3.2.23 | ||
| 0.0.140 | ^3.2.23 | ||
| 0.0.139 | ^3.2.23 | ||
| 0.0.138 | ^3.2.23 | ||
| 0.0.137 | ^3.2.23 | ||
| 0.0.136 | ^3.2.23 | ||
| 0.0.135 | ^3.2.23 | ||
| 0.0.134 | ^3.2.23 | ||
| 0.0.124 | ^3.2.23 | ||
| 0.0.118 | ^3.2.23 | ||
| 0.0.115 | ^3.2.23 | ||
| 0.0.114 | ^3.2.23 | ||
| 0.0.112 | ^3.2.23 | ||
| 0.0.111 | ^3.2.23 | ||
| 0.0.109 | ^3.2.23 | ||
| 0.0.108 | ^3.2.23 | ||
| 0.0.107 | ^3.2.23 | ||
| 0.0.106 | ^3.2.23 | ||
| 0.0.104 | ^3.2.23 | ||
| 0.0.103 | ^3.2.23 | ||
| 0.0.102 | ^3.2.23 | ||
| 0.0.101 | ^3.2.23 | ||
| 0.0.100 | ^3.2.23 | ||
| 0.0.99 | ^3.2.23 | ||
| 0.0.98 | ^3.2.23 | ||
| 0.0.97 | ^3.2.23 | ||
| 0.0.96 | ^3.2.23 | ||
| 0.0.95 | ^3.2.23 | ||
| 0.0.94 | ^3.2.23 |
Showing the latest 30 of 107. See every release on npm