lib.rs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #![allow(non_snake_case)]
  2. //! # Dioxus Namespace for HTML
  3. //!
  4. //! This crate provides a set of compile-time correct HTML elements that can be used with the Rsx and Html macros.
  5. //! This system allows users to easily build new tags, new types, and customize the output of the Rsx and Html macros.
  6. //!
  7. //! An added benefit of this approach is the ability to lend comprehensive documentation on how to use these elements inside
  8. //! of the Rsx and Html macros. Each element comes with a substantial amount of documentation on how to best use it, hopefully
  9. //! making the development cycle quick.
  10. //!
  11. //! All elements are used as zero-sized unit structs with trait impls.
  12. //!
  13. //! Currently, we don't validate for structures, but do validate attributes.
  14. mod elements;
  15. pub mod events;
  16. pub mod geometry;
  17. mod global_attributes;
  18. pub mod input_data;
  19. mod render_template;
  20. #[cfg(feature = "wasm-bind")]
  21. mod web_sys_bind;
  22. #[cfg(feature = "serialize")]
  23. mod transit;
  24. #[cfg(feature = "serialize")]
  25. pub use transit::*;
  26. pub use elements::*;
  27. pub use events::*;
  28. pub use global_attributes::*;
  29. pub use render_template::*;
  30. pub mod prelude {
  31. pub use crate::events::*;
  32. }