Evan Almloff cab573eefd Synchronous prevent default (#2792) 10 ヶ月 前
..
.vscode 052fd774cf Chore #2028: radically clean up core-macro 1 年間 前
docs 3a4860add4 Document props and component macro (#2522) 1 年間 前
src 0bb81aba6e fix Option<T> with non path T types (#2808) 10 ヶ月 前
tests cab573eefd Synchronous prevent default (#2792) 10 ヶ月 前
Cargo.toml 88af3e7eff Hotreloading of `for/if/body`, formatted strings, literals, component props, nested rsx, light CLI rewrite, cli TUI (#2258) 11 ヶ月 前
README.md f42ca65931 Fix Links & Add Link Checker (#2769) 10 ヶ月 前

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.