Free
Pro

Fieldset

A labelled group. toggleable lets the legend hide the body.

Pro

Pro — licensed

Fieldset — part of Ply Pro

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

Unlock Pro

Toggle

Street, city, and postal code stay in this group.

Installation

bash
npx ply-ui-cli add fieldset

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 fieldset
// Paths are relative to aliases.components (default: src/app/components)
import { FieldsetComponent } from './fieldset/fieldset.component';

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

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

API reference for fieldset
APIMemberTypeDefaultDescription
ply-fieldsetclassstring''Extra host classes merged via `cn()`.
ply-fieldsetlegendunknown'Details'Legend text.
ply-fieldsettoggleablebooleanfalseWhen true, the legend toggles the body.
ply-fieldsetcollapsedbooleanfalseWhether the body is hidden. Two-way bindable.