SurfaceBootstrap.Card (surface_bootstrap v0.2.5)

Card component.

Can hold:

https://getbootstrap.com/docs/5.0/components/card/

Properties

  • text_align :string, values: ~w(left center right) - Which way to align text, will cascade to all child elements.
  • width :string, values: ~w(25 50 75 100) - Helper to set utility classes of width in % of parent container.
  • style :string - Can be used to set width like width: 18em.
  • background_color :string, values: @colors - Background color.
  • text_color :string, values: @text_colors - Text color.
  • border_color :string, values: @colors - Border color.
  • class :css_class, default: [] - Extra classes to put on outer div.

Slots

  • card_header
  • card_footer
  • default

Link to this section Summary

Link to this section Functions

Callback implementation for Phoenix.LiveComponent.mount/1.

Link to this function

render(assigns)

Callback implementation for Phoenix.LiveComponent.render/1.

Link to this function

update(assigns, socket)

Callback implementation for Phoenix.LiveComponent.update/2.