Gathering detailed insights and metrics for chakra-loader
Gathering detailed insights and metrics for chakra-loader
Gathering detailed insights and metrics for chakra-loader
Gathering detailed insights and metrics for chakra-loader
@chakra-ui/spinner
A React component for displaying spinners and loaders
chakra-ui-optimization-loader
optimize bundle size of chakra-ui
chakra-bhumi-loader
The `PageLoader` component is a customizable loading spinner with dynamic gradient background support. It allows you to set primary colors, background colors, and gradient directions to match the design of your application. It also offers the option to di
react-skeleton-builder
A versatile React component library for creating customizable skeleton loading animations with Chakra UI and TypeScript.
Chakra UI Vue webpack loader for auto-import and registration of Chakra components
npm install chakra-loader
Typescript
Module System
JavaScript (71.74%)
Vue (22.43%)
HTML (5.83%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
13 Stars
32 Commits
3 Forks
1 Watchers
3 Branches
4 Contributors
Updated on Jul 31, 2024
Latest Version
1.0.3
Package Id
chakra-loader@1.0.3
Unpacked Size
11.72 kB
Size
4.70 kB
File Count
10
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
[](#contributors-)
✅ Automatically import only used Chakra components ✅ Preserves tree-shaking of Chakra components ✅ Better development experience
With Yarn:
1yarn add chakra-loader -D
With NPM:
1npm install chakra-loader --save-dev
If you're using webpack with Vue CLI or Nuxt.js for your Chakra project, import the ChakraLoaderPlugin
from the chakra-loader
package and add it to your vue.config.js
file.
With Vue CLI
1/* vue.config.js */ 2 3const { ChakraLoaderPlugin } = require('chakra-loader') 4 5module.exports = { 6 configureWebpack: { 7 plugins: [ 8 new ChakraLoaderPlugin() 9 ] 10 } 11} 12
With webpack.config.js
1/* webkack.config.js */ 2 3const VueLoaderPlugin = require('vue-loader/lib/plugin') 4const { ChakraLoaderPlugin } = require('chakra-loader') 5 6module.exports = { 7 // ... other options 8 plugins: [ 9 new VueLoaderPlugin(), 10 new ChakraLoaderPlugin() 11 ] 12}
With Nuxt.js
1/* nuxt.config.js */ 2 3import { ChakraLoaderPlugin } from 'chakra-loader' 4 5export default { 6 build: { 7 extend(config) { 8 config.plugins.push( 9 new ChakraLoaderPlugin() 10 ) 11 } 12 } 13}
ChakraLoaderPlugin
will analyse your SFC template at during development and at build time, and scan it for all Chakra UI Vue components that you consume in it. The loader will then proceed to automatically import those components and register them while preserving treeshaking.
For example, consider the component below, Component.vue
which uses Chakra's CBox
and CButton
components.
1<template> 2 <c-box p="3" m="auto" bg="tomato" font-weight="bold" color="white"> 3 Chakra UI Vue Box 4 </c-box> 5 <c-button> 6 Hello world! 7 </c-button> 8</template>
Using chakra-loader
will yield:
1<template> 2 <c-box p="3" m="auto" bg="tomato" font-weight="bold" color="white"> 3 Chakra UI Vue Box 4 </c-box> 5 <c-button> 6 Hello world! 7 </c-button> 8</template> 9 10<script> 11// 👇🏽 Automatically imports and registers 12// the CBox and CButton components from Chakra UI Vue. 🎉 13 14import { CBox, CButton } from '@chakra-ui/vue' 15 16export default { 17 name: 'App', 18 components: { 19 CBox, 20 CButton 21 } 22} 23</script>
This project was largely inspired by the great work done in amazing Vue projects like nuxt/components
and vuetify-loader
.
Thanks goes to these wonderful people (emoji key):
Jonathan Bakebwa 💻 🤔 | Omereshone Kelvin Oghenerhoro 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
Found 1/16 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
108 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More