Appearance
zk-email
Renders an
<input type="email">with a configurable browser-side validation pattern.
See zk-input for the full props reference.
Config
php
// config/blade-components.php
'email' => [
'pattern' => '[^@]+@[^@]+\.[a-zA-Z]{2,}',
],Example
blade
<x-zk-email name="email" label="Email address" required />Notes
- The
patternis applied as an HTMLpatternattribute for browser-side validation. - Override via config or pass
patterndirectly as a prop to bypass config.