Select

<Select> is a dropdown of options — single choice, or multiple for a set.
Options are plain strings or { value, label } objects.
import { useState } from "react";import { Select } from "@huyz0/ztui/react";
function LangPicker() { const [lang, setLang] = useState("TypeScript"); return <Select options={["TypeScript", "Rust", "Go"]} value={lang} onChange={setLang} />;}Key props
Section titled “Key props”options—(string | { value, label })[].value— the selected value (orstring[]whenmultiple).multiple— multi-select;onChangereceives an array.placeholder— shown when nothing is selected.