Field Status @astryx-svelte/core v0.3.0 · FieldStatus
Usage
FieldStatus renders validation feedback for fields and field-like controls. Use it directly for custom controls that need the same error, warning, or success presentation as Field.tsimport { FieldStatus } from '@astryx-svelte/core';
Best practices
| Guidance | Practices |
|---|---|
| Do | Use attached status below bordered inputs when the message belongs to that input. |
| Do | Use detached status for controls like checkboxes, switches, and custom controls where overlap would be visually awkward. |
| Don't | Use FieldStatus for general alerts or page-level notices; use Banner or Toast instead. |
Examples
Common configurations, variations, and states.FieldStatus — Basic
Detached error and success messages for validation feedback. Use below checkboxes, switches, or custom controls where an attached status would overlap.