node property

StyleNode node
final

The StyleNode descriptor containing the transformed css, ready to drop into a BloomNode tree.

Place this node inside any component's children to inject the scoped stylesheet during client-side DOM mounting (mount) or emit <style> tags during SSR (renderToHtml).

BloomNode profileCard() => Div(
  className: styles['card'],
  children: [
    styles.node,
    P(className: styles['bio'], text: 'Developer'),
  ],
);

Implementation

final StyleNode node;