View Source Shino.UI.ScrollArea (shino v0.1.1-alpha.0)

Provides scroll area related components.

Displays a scroll area which is supported by native scroll functionality.

References

Summary

Functions

Renders a scroll area.

Functions

Renders a scroll area.

Examples

<.scroll_area class="h-72 w-48 rounded-md border">
  <div class="p-4">
    <h2 class="mb-4 text-sm font-medium leading-none">Tags</h4>
    <%= for tag <- 1..50 do %>
      <div class="text-sm">
        v2.2.<%= tag %>
      </div>
      <.separator class="my-2" />
    <% end %>
  </div>
</.scroll_area>

Attributes

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

Slots

  • inner_block