Doggo (Doggo v0.18.4)

Copy Markdown View Source

This module only contains miscellaneous functions.

The components are defined in Doggo.Components.

Summary

Functions

Returns all component classes and data attributes used in the given components module.

Functions

safelist(module)

(since 0.13.0)
@spec safelist(module()) :: [String.t()]

Returns all component classes and data attributes used in the given components module.

This includes the base classes, nested classes (based on the base class) and modifier classes.

Usage

safelist(MyAppWeb.CoreComponents)
#=> ["button", "data-size", "data-variant"]