nb-indeterminate
This is an indeterminate loader component for Vue.js 3+.
Loading component...
Installation
Yarn
yarn add @vlalg-nimbus/nb-loaders
Usage
Vue 3
import { createApp } from 'vue'
import App from './App.vue'
import NbLoadersComponents from '@vlalg-nimbus/nb-loaders'
import "@vlalg-nimbus/nb-loaders/dist/style.css";
const app = createApp(App)
app.use(NbLoadersComponents)
app.mount('#app')
To use, simply call the component, in this case it will be NbIndeterminate or nb-indeterminate.
Mode 1
<template>
<NbIndeterminate />
</template>
Preview & Playground
Select the component you want to edit/test
Loading Sandbox...
Props
Items with an (*) mean they are required
| name | Value type | Default | Description |
|---|---|---|---|
| nbId (*) | String | Sets the id attribute to differentiate from other components | |
| show | Boolean | true | Defines if the loader is visible |
| ariaLabel | String | 'Alternate Text Button' | Defines the aria-label attribute for screen readers |
| ariaAttrs | Object | {} | Allows passing custom aria attributes as an object. Keys will automatically receive the aria- prefix |
| backgroundColor | String | '#e2e8f0' | Defines the background color. Accepts Color name and Hex |
| progressBarColor | String | '#020617' | Defines the progress bar color. Accepts Color name and Hex |
| height | Number | 3 | Defines the height of the loader in pixels |
| borderRadius | Number | 0.375 | Defines the border radius in rem units |
Events
| name | Return type | Description |
|---|---|---|
| clicked | nothing | Fired when the loader is clicked, returns nothing |
| changed | value | Fired when the show prop changes, returns the new value |
Table of Contents
