learning-browser-library
v0.0.4
Published
A Vue 3 component library with Input and Toggle components
Downloads
40
Maintainers
Readme
Learning Browser Library
A Vue 3 component library providing reusable UI components.
Installation
npm install learning-browser-libraryComponents
Input
A search input component with icon.
<script setup>
import { Input } from 'learning-browser-library'
import { ref } from 'vue'
const search = ref('')
</script>
<template>
<Input v-model="search" placeholder="Search..." />
</template>Toggle
An accessible toggle/switch component.
<script setup>
import { Toggle } from 'learning-browser-library'
import { ref } from 'vue'
const isEnabled = ref(false)
</script>
<template>
<Toggle v-model="isEnabled" label="Enable feature" />
</template>Props
Input
modelValue(String): The input value (v-model)placeholder(String): Placeholder textid(String): Input element ID
Toggle
modelValue(Boolean): The toggle state (v-model)label(String): Accessible label for the toggledisabled(Boolean): Whether the toggle is disabledid(String): Toggle element ID
License
MIT
