#[derive(Atomic)]
{
// Attributes available to this derive:
#[atomic]
}
Expand description
Implements a custom trait - Atomic
§Used on
- properties
§Purpose
It does two things:
- 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 - Improves the ergonomic of usage with
yew
(under the feature flag) -Into<yew::Classes>