PhoenixKit.Modules.Shared.Components.CTA (phoenix_kit v2.4.0)

Copy Markdown View Source

Call-to-action button component.

Rendered inside a centring block. The button itself shrinks to its content, so left in the flow it sits flush against the left margin of the text column — which reads as a mistake for something whose whole job is to be the one thing you look at.

Summary

Functions

render(assigns)

Attributes

  • content (:string) (required)
  • attributes (:map) - Defaults to %{}.
  • variant (:string) - Defaults to "default".