Installation
Package Manager
Install vue-superselect as a dependency in your Vue 3 project:
npm install vue-superselectyarn add vue-superselectpnpm add vue-superselectPeer Dependencies
Vue 3.5+ is required as a peer dependency. If you are already using Vue 3.5 or later, no additional setup is needed.
Floating UI (optional)
For automatic dropdown positioning with collision detection, install @floating-ui/vue:
npm install @floating-ui/vueyarn add @floating-ui/vuepnpm add @floating-ui/vueIf @floating-ui/vue is not installed, you can position the dropdown yourself using CSS. The library works without it.
TypeScript
vue-superselect ships TypeScript declarations out of the box. No additional @types packages are needed.
The library is written with TypeScript strict mode and provides full generic inference for option types, values, and labels.
import { SelectRoot, SelectOption } from 'vue-superselect'
// Types are automatically inferred - no extra setup neededBrowser Support
vue-superselect supports all modern browsers that Vue 3 supports:
- Chrome / Edge 88+
- Firefox 78+
- Safari 14+
Next Steps
Once installed, head to the Quick Start guide to build your first select component.