View Source SaladUI.HoverCard (SaladUI v0.13.1)

Implement hover card component

Usage

<.hover_card>
  <.hover_card_trigger>
    <.button variant="link">
      @salad_ui
    </.button>
  </.hover_card_trigger>
  <.hover_card_content>
     Hover card content
  </.hover_card_content>
</.hover_card>

Summary

Functions

Render hover card wrapper

Render hover card content

Render hover card trigger

Functions

Render hover card wrapper

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)
Link to this function

hover_card_content(assigns)

View Source

Render hover card content

Attributes

  • class (:string) - Defaults to nil.
  • side (:string) - Defaults to "top".
  • align (:string) - Defaults to "center".
  • Global attributes are accepted.

Slots

  • inner_block (required)
Link to this function

hover_card_trigger(assigns)

View Source

Render hover card trigger

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)