diff --git a/docs/pages/kcardgrid.vue b/docs/pages/kcardgrid.vue
index 8ea282b15..0cd0c91ee 100644
--- a/docs/pages/kcardgrid.vue
+++ b/docs/pages/kcardgrid.vue
@@ -593,11 +593,11 @@
While data is loading, KCardGrid
shows loading skeleton cards. Use the loading
prop to toggle the loading state. KCardGrid
optimizes the loading experience by:
While data is loading, KCardGrid
shows loading skeleton cards. Use the loading
prop to toggle the loading state. Note that KCardGrid
internal optimizations may affect how closely the visual loading experience matches the loading
value:
Use the buttons in the example below to preview.
@@ -676,40 +676,6 @@ -Here, the height of loading skeleton cards is 400px
with vertical orientation on breakpoints 0-3
, and 220px
with horizontal orientation on breakpoints 4-7
. This makes skeleton cards resemble loaded cards at all breakpoints, creating a smooth transition for users during data loading.
Simplify skeletonsConfig
by taking a bottom-up approach. Begin with a base setup for all breakpoints and override only where needed. For example, the above configuration can be written as:
To get a sense of what can be achieved, reload this page and the KCard
page to preview the loading state in all examples.
Here, the height of loading skeleton cards is 400px
with vertical orientation on breakpoints 0-3
, and 220px
with horizontal orientation on breakpoints 4-7
. This makes skeleton cards resemble loaded cards at all breakpoints, creating a smooth transition for users during data loading. Note the bottom-up approach where we begin with a base setup for all breakpoints and gradually override on higher breakpoints. This simplifies the configuration object.
To get a sense of what skeleton layouts can be achieved, reload this page and the KCard
page to preview the loading state in all examples.