Skip to content

BaseBox

Props

Prop nameDescriptionTypeValuesDefault
renderElementAsspecify the tag type of the box

note: rendering a link element
this needs to be a valid vue link component string (e.g. 'RouterLink') or a component directly
and vue-router is necessary
caveat: if you are using Nuxt the string 'NuxtLink' is not enough,
but you need to import the component as import { NuxtLink } from '#components';
and pass the component to the prop!
string|object-'div'
boxSizedefine the size of the box
should be an object with width and / or height
object-{
width: '200px'
}
boxRatiodefine the ratio of width and height of the box
(in percent string, e.g. 1:1 --> '100', 1:2 --> '50')
string-'100'
boxHoverenable or disable hoverboolean-true
boxShadowSizeset boxShadow sizestringlarge, small, none'small'
disabledset disabled attribute (e.g. for button elements)boolean-false
additionalAttributesspecify any additional attributes the native box element should have
style and class attributes can not be overwritten though
object-{}

Events

Event namePropertiesDescription
clickedundefined MouseEvent - the native mouse eventevent emitted upon box click

Slots

NameDescriptionBindings
defaultslot for box contents

Demo