feat: implement validation for select component

This commit is contained in:
alphafetus committed 2026-01-02 17:53:28 -05:00
1 parent 10d001fd6b
commit b0b6f97b11
5 files changed
+114 -35

No files matched your search

+5
View File
@@ -56,6 +56,11 @@ pub struct FormValidationRegistry {
pub validators: RwSignal<ValidatorList>
}
/// Gets the [`FormValidationRegistry`] context if it exists.
pub fn use_validation_context() -> Option<FormValidationRegistry> {
use_context::<FormValidationRegistry>()
}
/// # Validated Form Component
///
/// A simple HTML `<form>` wrapper that executes validation logic using a [`FormValidationRegistry`].