Expand description

Procedural macros for Yew and Bulma

This crate provides various procedural macros for the Yew and Bulma crate. Most importantly, the crate::base_component_properties macro, which adds various HTML attributes, such as id, class or event attributes like onclick.

Supported Targets (for Yew Client-Side Rendering only)

  • wasm32-unknown-unknown

Examples

use yew_and_bulma_macros::base_component_properties;

// This will add the `id`, `class` and all standard event HTML attributes.
#[base_component_properties]
// #[derive(Properties, PartialEq)] // From yew
struct MyProperties;

Attribute Macros