Skip to content

Placeholder

Basic Usage

vue
<script setup>
import { Placeholder } from '@8ctavio/vergil/components'
</script>

<template>
    <Placeholder/>
</template>

<style>
.placeholder {
    width: 300px;
    height: 80px;
}
</style>

Props

The Placeholder component features a Badge to display details. All Placeholder props are forwarded to its inner Badge.

vue
<Placeholder label="Placeholder" outline size="sm"/>

Placeholder

API Reference

Props

proptypedefault
labelstring
descendantboolean
theme'brand' | 'user' | 'ok' | 'info' | 'warn' | 'danger' | 'neutral''brand'
size'xs' | 'sm' | 'md' | 'lg' | 'xl''md'
radius'none' | 'sm' | 'md' | 'lg' | 'full''md'
spacing'' | 'compact' | 'extended'''

Configuration options

Placeholder's configuration options allow to overwrite some Placeholder props' default values and may be overwritten under the placeholder root-level configuration option.

placeholder.<option>typedefaultglobal
themetheme
sizesize
radiusradius
spacingspacing

Anatomy

<div.placeholder/>

<Badge.badge/>