52 lines
1.4 KiB
Rust
52 lines
1.4 KiB
Rust
|
|
//! VAPORA Leptos UI - Glassmorphism component library
|
||
|
|
//!
|
||
|
|
//! CSR/SSR agnostic components with glassmorphism design.
|
||
|
|
//!
|
||
|
|
//! # Features
|
||
|
|
//!
|
||
|
|
//! - 🎨 Glassmorphism design (cyan/purple/pink gradients)
|
||
|
|
//! - 🔄 CSR/SSR agnostic (works in both contexts)
|
||
|
|
//! - ♿ Accessible (ARIA labels, keyboard navigation)
|
||
|
|
//! - 📱 Mobile responsive
|
||
|
|
//! - 🎯 UnoCSS integration
|
||
|
|
//!
|
||
|
|
//! # Quick Start
|
||
|
|
//!
|
||
|
|
//! ```rust
|
||
|
|
//! use leptos::prelude::*;
|
||
|
|
//! use vapora_leptos_ui::{Button, Variant, Size};
|
||
|
|
//!
|
||
|
|
//! #[component]
|
||
|
|
//! fn App() -> impl IntoView {
|
||
|
|
//! view! {
|
||
|
|
//! <Button variant=Variant::Primary size=Size::Large>
|
||
|
|
//! "Click Me"
|
||
|
|
//! </Button>
|
||
|
|
//! }
|
||
|
|
//! }
|
||
|
|
//! ```
|
||
|
|
|
||
|
|
pub mod data;
|
||
|
|
pub mod feedback;
|
||
|
|
pub mod forms;
|
||
|
|
pub mod layout;
|
||
|
|
pub mod navigation;
|
||
|
|
pub mod primitives;
|
||
|
|
pub mod theme;
|
||
|
|
mod utils;
|
||
|
|
|
||
|
|
// Re-export theme tokens
|
||
|
|
// Re-export data types
|
||
|
|
pub use data::table::unified::TableColumn;
|
||
|
|
// Re-export components (all fully functional as of v1.2.0)
|
||
|
|
pub use data::{Pagination, StatCard, Table};
|
||
|
|
pub use feedback::{use_toast, ToastContext, ToastMessage, ToastProvider, ToastType};
|
||
|
|
pub use forms::{
|
||
|
|
validate_email, validate_max_length, validate_min_length, validate_required, FormField,
|
||
|
|
};
|
||
|
|
pub use layout::{Card, Modal};
|
||
|
|
pub use navigation::SpaLink;
|
||
|
|
pub use primitives::{Badge, Button, Input, Spinner};
|
||
|
|
pub use theme::{BlurLevel, GlowColor, Size, Variant};
|
||
|
|
pub use utils::Portal;
|