Sha256: df248be2ed7be69778a210f63e753f520029a8a4426d0bcffabbd88eff686b38

Contents?: true

Size: 706 Bytes

Versions: 9

Compression:

Stored size: 706 Bytes

Contents

<p class="leading-7 [&:not(:first-child)]:mt-6">The Alert component introduces:</p>

<ul class="my-6 ml-6 list-disc [&>li]:mt-2 text-sm">
  <li><%= code("app/helpers/components/alert_helper.rb") %></li>
  <li><%= code("app/views/components/ui/_alert.html.erb") %></li>
</ul>

<p class="leading-7 [&:not(:first-child)]:mt-6">
The method <%= code("render_alert") %> defined in <%= code("app/helpers/components/alert_helper.rb") %>
accepts a <%= code("title:") %> and <%= code("description:") %> required keyword arguments along with an optional <%= code("variant:") %> argument for the kind of alert to render. Skip the icon by setting the optional argument <%= code("icon:") %> to <%= code("false") %>.</p>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shadcn-ui-0.0.15 app/views/examples/components/alert/_usage.html.erb
shadcn-ui-0.0.14 app/views/examples/components/alert/_usage.html.erb
shadcn-ui-0.0.13 app/views/examples/components/alert/_usage.html.erb
shadcn-ui-0.0.12 app/views/examples/components/alert/_usage.html.erb
shadcn-ui-0.0.10 app/views/examples/components/alert/_usage.html.erb
shadcn-ui-0.0.8 app/views/examples/components/alert/_usage.html.erb
shadcn-ui-0.0.5 app/views/examples/components/alert/_usage.html.erb
shadcn-ui-0.0.4 app/views/examples/components/alert/_usage.html.erb
shadcn-ui-0.0.3 app/views/examples/components/alert/_usage.html.erb