defmodule Shino.UI.ScrollArea do @moduledoc """ Provides scroll area related components. > Displays a scroll area which is supported by native scroll functionality. ## References * [@radix-ui/primitives - Scroll Area](https://www.radix-ui.com/primitives/docs/components/scroll-area) * [shadcn/ui - Scroll Area](https://ui.shadcn.com/docs/components/scroll-area) """ use Shino.UI, :component @doc """ Renders a scroll area. ## Examples ```heex <.scroll_area class="h-72 w-48 rounded-md border">

Tags

<%= for tag <- 1..50 do %>
v2.2.<%= tag %>
<.separator class="my-2" /> <% end %>
``` """ attr :class, :any, default: nil attr :rest, :global slot :inner_block def scroll_area(assigns) do ~H"""
<%= render_slot(@inner_block) %>
""" end end