Derive Macro Atomic

Source
#[derive(Atomic)]
{
    // Attributes available to this derive:
    #[atomic]
}
Expand description

Implements a custom trait - Atomic

§Used on

  • properties

§Purpose

It does two things:

  1. Implements a trait by generating Style with a single rule only _(following the Atomic CSS approcach) - based on the property’s name, and the value stored
  2. Improves the ergonomic of usage with yew (under the feature flag) - Into<yew::Classes>