Repository navigation
Search
Viames Marino edited this page Feb 26, 2026
·
2 revisions
Pair\Html\FormControls\Search renders <input type="search">.
render(): string- Inherited methods from FormControl:
placeholder(),pattern(),minLength(),maxLength(),inputmode(),value(),validate().
$search = (new \Pair\Html\FormControls\Search('q'))
->placeholder('Search orders')
->minLength(2)
->maxLength(120)
->inputmode('search');
echo $search->render();With explicit pattern:
$skuSearch = (new \Pair\Html\FormControls\Search('sku'))
->pattern('^[A-Z0-9-]+$')
->placeholder('SKU code');See also: Text, Tel, FormControl.
Maintained by Viames Marino — VM Ingegneria · Professional enquiries
Home · Setup · Configuration
Build with Pair 4
- Generator
- Controllers and responses
- Read models
- ActiveRecord and queries
- Forms and validation
- PairUI.js and HTML fragments
APIs and authentication
- API guide and CRUD
- Middleware and rate limits
- Users, sessions, and ACL
- Passkeys and social login
- Native mobile setup
Integrate and operate
- Integrations
- Runtime extensions and adapter keys
- Cache and cache stores
- Logs and observability
- PWA and push
- Packages and distribution
- Upgrade to v4