Skip to content
Components

Spinner

An action in progress.

After the one-time setup, call the helper directly from ERB. No component import is needed.

<%= lc_spinner size: :sm %>
<%= lc_spinner label: "Loading projects" %>
<%= lc_spinner size: :lg %>
Loading… Loading projects Loading…
<%= lc_spinner size: :sm %>
<%= lc_spinner label: "Loading projects" %>
<%= lc_spinner size: :lg %>

Helpers render semantic HTML and include their interaction wiring. Pass native attributes through class:, data:, aria: and the usual Rails options. Blocks use captured ERB content.

lc_spinner

lc_spinner(size: :md, label: lc_t("lostcoords.ui.spinner.label"), **attributes)
InputDefaultValues
size:md:sm · :md · :lg
labellc_t("lostcoords.ui.spinner.label")Accessible name, visible where applicable
attributes{}Native HTML attributes; class:, data: and aria: merge with defaults

Styling and extension

Use class: to merge utilities, native attributes for application behavior, and the theming guide for the shared palette. For custom markup, the advanced class helpers expose the same styles, including glass surfaces and class merging.

API JSON · LLM reference