diff --git a/docs/app/views/examples/components/loader/_preview.html.erb b/docs/app/views/examples/components/loader/_preview.html.erb index 8a089ef240..b1eec7fcc9 100644 --- a/docs/app/views/examples/components/loader/_preview.html.erb +++ b/docs/app/views/examples/components/loader/_preview.html.erb @@ -1,29 +1,48 @@ -

Without text

-
-
+

Variants

+ +

Bar

+<%= sage_component SageGridRow, {} do %> + <%= sage_component SageGridCol, { size: 12, css_classes: "example__block--lg" } do %> <%= sage_component SageLoader, { - type: "spinner" + type: "bar" } %> -
-
- <%= sage_component SageLoader, { - type: "success" - } %> -
-
-
-

With text

-
-
+ <% end %> +<% end %> + +<%= sage_component SageDivider, {} %> + +

Spinner

+<%= sage_component SageGridRow, {} do %> + <%= sage_component SageGridCol, { size: 6, css_classes: "example__block--lg" } do %> +

With text

<%= sage_component SageLoader, { type: "spinner", text: true } %> -
-
+ <% end %> + <%= sage_component SageGridCol, { size: 6, css_classes: "example__block--lg" } do %> +

Without text

+ <%= sage_component SageLoader, { + type: "spinner" + } %> + <% end %> +<% end %> + +<%= sage_component SageDivider, {} %> + +

Success

+<%= sage_component SageGridRow, {} do %> + <%= sage_component SageGridCol, { size: 6, css_classes: "example__block--lg" } do %> +

With text

<%= sage_component SageLoader, { type: "success", text: true } %> -
-
+ <% end %> + <%= sage_component SageGridCol, { size: 6, css_classes: "example__block--lg" } do %> +

Without text

+ <%= sage_component SageLoader, { + type: "success" + } %> + <% end %> +<% end %> diff --git a/docs/app/views/examples/components/loader/_props.html.erb b/docs/app/views/examples/components/loader/_props.html.erb index 141ddb9128..b40d09355a 100644 --- a/docs/app/views/examples/components/loader/_props.html.erb +++ b/docs/app/views/examples/components/loader/_props.html.erb @@ -1,12 +1,19 @@ - <%= md('`type`') %><%= sage_component SageBadge, { color: "published", value: "required" } %> - <%= md('Determines which loader will be used; `spinner` or `success`') %> - <%= md('String') %> - <%= md('`nil`') %> + <%= md('`fill`') %> + <%= md('If true, will fill the space within the container.') %> + <%= md('Boolean') %> + <%= md('`false`') %> <%= md('`text`') %> <%= md('Includes text that aligns with the loader.') %> <%= md('Boolean') %> + <%= md('`false`') %> + + + <%= md('`type`') %><%= sage_component SageBadge, { color: "published", value: "required" } %> + <%= md('Determines which loader will be used; `bar`, `spinner` or `success`') %> + <%= md('String') %> <%= md('`nil`') %> +