Modern lightweight Vue 3 seven segment display.
First step is to install it using yarn
or npm
:
npm install vue3-seven-segment-display
# or use yarn
yarn add vue3-seven-segment-display
import SevenSegmentDisplay from 'vue3-seven-segment-display'
const app = createApp(App)
app.use(SevenSegmentDisplay as Plugin)
or
<template>
<seven-segment-display :value="3421" />
</template>
<script>
import { SevenSegmentDisplay } from 'vue3-seven-segment-display'
export default {
name: 'App',
components: {
SevenSegmentDisplay
},
}
</script>
You only need to use CSS to customize, and use font-size
and color
as normal text.
Prop | Descriptoion | Type | Default |
---|---|---|---|
value | Number displayed on the screen. Must be integer or String in integer form. | String, Number | undefined |
disable-select | Forbidden user select behavior. | Boolean | false |