🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@hautechai/webui.dropdown

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hautechai/webui.dropdown

Select input component with customizable options and styling variants for choosing from predefined values.

latest
npmnpm
Version
2.1.29
Version published
Weekly downloads
47
23.68%
Maintainers
1
Weekly downloads
 
Created
Source

Dropdown

Purpose

Select input component with customizable options and styling variants for choosing from predefined values.

Installation

# pnpm (recommended)
pnpm add @hautechai/webui.dropdown

# npm
npm install @hautechai/webui.dropdown

# yarn
yarn add @hautechai/webui.dropdown

Parameters

ParameterTypeDescription
labelstringOptional label displayed above or within the dropdown
disabledbooleanWhen true, disables dropdown interaction and applies disabled styling
type'filled' | 'outlined' | 'flat'Optional visual style variant (defaults to standard appearance)
size'xsmall' | 'small' | 'medium'Optional size (defaults to 'medium'). xsmall mirrors small sizing (16px icon) but uses tighter padding when collapsed
collapsedbooleanWhen true, renders only the toggle icon (no label) for ultra-compact UI
valuestringOptional controlled selected value
optionsArray<{ label: string; value: string }>Required array of selectable options with label and value properties
onChange(value: string) => voidOptional callback function triggered when selection changes
hasErrorbooleanWhen true, applies error styling to indicate validation failure
hoverControlsReact.ReactNodeOptional controls displayed on hover/focus with xs gap from the arrow icon

Usage Example

<Dropdown
    label="Select Country"
    type="filled"
    size="small"
    collapsed={false}
    value={selectedCountry}
    options={[
        { label: 'United States', value: 'us' },
        { label: 'Canada', value: 'ca' },
    ]}
    onChange={setSelectedCountry}
    hasError={!!countryError}
/>

FAQs

Package last updated on 15 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts