🎉Paper UI v2.0 is here!
See what's new

PUDropdown Component

A hand-drawn style dropdown component with smooth animations and customizable options

Usage

Basic Usage

Different Sizes

Disabled State

Props

PropTypeRequiredDefaultDescription
modelValuestring | numberNo''Selected option value
optionsDropdownOption[]No[]Array of dropdown options
placeholderstringNoSelect an optionPlaceholder text
disabledbooleanNofalseDisabled state
sizesmall | medium | largeNomediumDropdown size
customClassstringNo''Custom CSS classes

Events

EventPayloadDescription
update:modelValuestring | numberEmitted when selection changes
changestring | numberEmitted when option is selected

Types

TypePropertiesDescription
DropdownOptionvalue: string | number, label: string, icon?: anyDropdown option interface

Features

  • Hand-drawn style trigger and menu with organic shadows
  • Smooth dropdown animations with Vue transitions
  • Click outside to close functionality
  • Keyboard navigation support
  • Multiple sizes for different use cases
  • Disabled state support
  • Optional icons for options
  • Dark mode support
  • Responsive design

Dependencies

  • Tailwind CSS for styling
  • Vue 3 Composition API