Skip to content

Blanket

Open in Storybook

Interactive Demo

Usage

vue
<script setup>
import { Blanket } from '@yellowcard/b2b-design-system';
</script>

<template>
  <Blanket />
</template>

API Reference

Props

PropTypeDefaultDescription
visiblebooleanfalseControls visibility of the blanket
variant'default' | 'light' | 'heavy''default'Visual variant of the blanket
zIndexnumberCustom z-index value
opacitynumberCustom opacity value (0-1)
transitionstring'fade'Transition animation name
interactivebooleanfalseWhether the blanket can receive focus/interaction
backgroundColorstringCustom background color

Events

EventPayloadDescription
clickMouseEventEmitted when blanket is clicked
escapevoidEmitted when Escape key is pressed

Slots

SlotBindingsDescription
defaultDefault content