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
zIndexnumber—Custom z-index value
opacitynumber—Custom opacity value (0-1)
transitionstring'fade'Transition animation name
interactivebooleanfalseWhether the blanket can receive focus/interaction
backgroundColorstring—Custom background color

Events ​

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

Slots ​

SlotBindingsDescription
default—Default content