Repository navigation
Color
Viames Marino edited this page Feb 26, 2026
·
2 revisions
Pair\Html\FormControls\Color renders <input type="color">.
render(): string- Inherited methods from FormControl:
value(),id(),class(),title(),required(),disabled(),readonly().
$color = (new \Pair\Html\FormControls\Color('themeColor'))
->value('#0ea5e9')
->title('Primary theme color');
echo $color->render();HTML color input expects hex-like values (#RRGGBB).
See also: FormControl, Text.
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