Free
Pro

Floating Label Input

An input field where the label floats above the entered text when focused or filled, providing a clean, space-saving interface based on Material Design principles.

freenew

Playground

HTML

<ply-floating-input label="Email address" type="email">Floating Input</ply-floating-input>

Basic Usage

Use the <ply-floating-input> component directly. It integrates with Angular Forms out of the box.

Entered Email:

Installation

Run the following command to add this component to your project:

bash

npx ply-ui-cli add floating-input

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

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

API for floating-input — generated from JSDoc in the library source.

API reference for floating-input
APIMemberTypeDefaultDescription
ply-floating-inputclassstring''Additional host CSS classes (merged via cn()).
ply-floating-inputlabelstring'Label'
ply-floating-inputtypestring'text'