Jonathan Kelley 4d3d55a7a3 CLI self-updater, warn on version mismatch, direct install.sh option, androidmanifest and info.plist customization, bump to 0.7-alpha.0 (#4095) 1 month ago
..
.vscode 052fd774cf Chore #2028: radically clean up core-macro 1 year ago
docs a621cb8044 docs: demonstrate extending both global and element attributes (#3555) 5 months ago
src 4d3d55a7a3 CLI self-updater, warn on version mismatch, direct install.sh option, androidmanifest and info.plist customization, bump to 0.7-alpha.0 (#4095) 1 month ago
tests 0c0f0e96df Use SuperInto and correct Owner for props defaults (#3959) 1 month ago
Cargo.toml f0d814fede Extract some simple cleanups from 2779 (#2966) 9 months ago
README.md 66a50240bc Update all docs links to 0.6, release 0.6 (#3225) 6 months ago

README.md

dioxus-core-macro

Crates.io MIT licensed Build Status Discord chat

Website | Guides | API Docs | Chat

Overview

dioxus-core-macro provides a handful of helpful macros used by the dioxus crate. These include:

  • The rsx! macro that underpins templates and node creation.
  • The component attribute macro denotes a function as a Dioxus component. Currently, this:
    • Transforms function arguments into an auto-derived struct.
    • Ensures that your component name uses PascalCase.
    • Probably more stuff in the future. This macro allows us to have a way of distinguishing functions and components, which can be quite handy.
  • The format_args_f macro which allows f-string formatting with support for expressions.

Contributing

  • Report issues on our issue tracker.
  • Join the discord and ask questions!

License

This project is licensed under the MIT license.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Dioxus by you shall be licensed as MIT without any additional terms or conditions.