Free
Pro

Listbox

A list that selects one value or many. The form value is the option value, or a string[] when multiple is set.

Pro

Pro — licensed

Listbox — part of Ply Pro

Unlock it plus 108 pro blocks, widgets & layouts — $99 one-time. Lifetime updates, 14-day money-back guarantee.

Unlock Pro

Single

Lisbon
Berlin
Sofia

Value: none

Multiple

Lisbon
Berlin
Sofia

Value: none

Installation

bash
npx ply-ui-cli add listbox

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.

bash
npx -y ply-ui-mcp

Ply provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)
// Install: npx ply-ui-cli add listbox
// Paths are relative to aliases.components (default: src/app/components)
import { ListboxComponent, ListboxOption } from './listbox/listbox.component';

@Component({
  selector: 'app-your-component',
  imports: [
    ListboxComponent
  ],
  template: `...`
})
export class YourComponent {}

API for listbox — generated from JSDoc in the library source.

API reference for listbox
APIMemberTypeDefaultDescription
ListboxOptionlabelstring — —
ListboxOptionvaluestring — —
ListboxOptiondisabledboolean — —
ply-listboxclassstring''Extra host classes merged via `cn()`.
ply-listboxoptionsListboxOption[][]Options. `value` is what the form stores.
ply-listboxmultiplebooleanfalseWhen true, the value is a `string[]` and rows toggle.
ply-listboxaria-labelunknown'List'Accessible name for the list.
ply-listboxemptyMessagestring''Replaces the empty copy.