Expand description
§leptos-hl-contact
A reusable, secure contact form plugin for Leptos v0.8.
§Architecture
┌──────────────────────────────────────────┐
│ UI Component (ContactForm) │ client + server
├──────────────────────────────────────────┤
│ Server Function (submit_contact) │ server only
├──────────────────────────────────────────┤
│ Delivery Backend (ContactDelivery) │ server only
└──────────────────────────────────────────┘§Feature flags
| Flag | Effect |
|---|---|
hydrate | Enables Leptos hydration for the client side. |
ssr | Enables server-side rendering and server fns. |
islands | Enables Leptos Islands architecture. |
smtp-lettre | Enables the SMTP delivery adapter. |
axum-helpers | Enables Axum-specific integration helpers. |
§Quick start
See the
examples/axum-basic
directory for a complete working example.
§Security
SMTP credentials and the recipient address live only on the server. They are never serialised to WASM or returned to the client. See the security documentation.
Re-exports§
pub use components::ContactForm;pub use config::ContactFormClasses;pub use config::ContactFormLabels;pub use config::ContactFormOptions;pub use config::ContactServerPolicy;pub use delivery::ContactDelivery;pub use delivery::ContactDeliveryContext;pub use error::ContactDeliveryError;pub use error::ContactFieldErrors;pub use error::ContactValidationError;pub use model::ContactInput;pub use server::submit_contact;