Skip to contents

Element Plus's el-skeleton-item, for the template slot of el_skeleton(), which draws a custom placeholder while loading.

Usage

el_skeleton_item(variant = NULL, ...)

Arguments

variant

The shape: "p", "text" (Element's default), "h1", "h3", "caption", "button", "image", "circle" or "rect".

...

Attributes for the tag, such as style.

Value

A tag.

Binding

No argument follows v_bind(): drawn by R.

Examples

el_skeleton(
  slots = list(
    template = htmltools::tagList(
      el_skeleton_item("image", style = "width: 240px; height: 240px"),
      el_skeleton_item("p", style = "width: 50%")
    )
  )
)
#> <div id="el_skeleton_f7b02f3b-7b68-4f4a-ac74-4815f2a151de" data-shiny-vue style="display: contents">
#>   <script type="text/x-template" data-shiny-vue-template><div id="el_skeleton_f7b02f3b-7b68-4f4a-ac74-4815f2a151de_container" style="display: contents">
#>   <el-skeleton v-bind="$optional(&#39;skeleton&#39;)" :loading="skLoading">
#>     <template v-slot:template>
#>       <el-skeleton-item variant="image" style="width: 240px; height: 240px"></el-skeleton-item>
#>       <el-skeleton-item variant="p" style="width: 50%"></el-skeleton-item>
#>     </template>
#>   </el-skeleton>
#> </div></script>
#>   <script type="application/json" data-shiny-vue-options>{"options":{"data":{"skLoading":true,"skRows":null,"skAnimated":null,"skCount":null,"skThrottle":null}},"input":null,"rate":null,"type":null,"use":["shinyElement.plugin"],"optional":{"skeleton":{"rows":"skRows","animated":"skAnimated","count":"skCount","throttle":"skThrottle"}},"generated":true,"evals":[]}</script>
#> </div>