BccGraphic
Less than 1 minute
BccGraphic
Decorative graphic element with banner image, logo overlay, and corner slots.
Preview
When to use
- For hero/banner sections with overlaid logos
- For event or article card headers
- When you need a styled image with aspect ratio control
Installation
npm install @bcc-code/component-library-vueUsage
<script setup>
import { BccGraphic } from "@bcc-code/component-library-vue";
</script>
<template>
<BccGraphic bannerSrc="/images/banner.jpg" logoSrc="/images/logo.svg" ratio="wide" />
</template>Props
| Prop | Type | Default | Description |
|---|---|---|---|
bannerSrc | string | β | Background image URL |
logoSrc | string | β | Overlay logo image URL |
rounding | 'none' | 'sm' | 'base' | 'md' | 'xl' | β | Corner rounding |
ratio | 'ultraWide' | 'wide' | 'landscape' | 'square' | 'portrait' | string | β | Aspect ratio (preset or custom w/h) |
grayscale | boolean | β | Apply grayscale filter to banner |
Slots
| Slot | Description |
|---|---|
top-left | Top-left corner overlay |
top-right | Top-right corner overlay |
bottom-left | Bottom-left corner overlay |
bottom-right | Bottom-right corner overlay |

