benjaminpalko/.opencode/skills/daisyui/components/validator.md
Benjamin Palko f526f5c0aa
Some checks failed
Deploy / deploy (push) Failing after 39s
set up new workflow and migrate to .forgejo dir (#5)
Co-authored-by: Benjamin Palko <benjaminpalko@hotmail.com>
Reviewed-on: #5
2026-08-11 20:55:29 -04:00

21 lines
431 B
Markdown

### validator
Validator class changes the color of form elements to error or success based on input's validation rules
[validator docs](https://daisyui.com/components/validator/)
#### Class names
- component: `validator`
- part: `validator-hint`
#### Syntax
```html
<input type="{type}" class="input validator" required />
<p class="validator-hint">Error message</p>
```
#### Rules
- Use with `input`, `select`, `textarea`