Integration helper for using StyleCapsule with Phlex components.
This module provides utilities to integrate StyleCapsule CSS scoping with Phlex components.
Note: This requires the style_capsule package to be installed.
Add it to your dependencies:
{:style_capsule, "~> 0.5"}
Summary
Functions
Adds data-capsule attribute to a state's attributes list.
Generates a capsule ID for a component module.
Scopes CSS for a component.
Generates a style tag with scoped CSS.
Wraps HTML content with a capsule element.
Functions
Adds data-capsule attribute to a state's attributes list.
Generates a capsule ID for a component module.
Scopes CSS for a component.
Generates a style tag with scoped CSS.
Wraps HTML content with a capsule element.