Skip to content

MazCardSpotlight

MazCardSpotlight is a standalone component

INFO

Before you have to import the global css files in your project, follow instructions in Getting Started

This component is better in dark mode

TIP

If you want to increase the border width, you must just add padding @default: var(--maz-border-width) (1px)

Basic usage

Hover this component
To see the magic appear

Effect with multiple cards and with secondary color

avatar image
Ligue 1France
avatar image
Premier LeagueEngland
avatar image
BundesligaGermany
avatar image
EredivisieNetherlands
avatar image
Serie AItaly
avatar image
Primera DivisionSpain
avatar image
Primeira LigaPortugal
avatar image
UEFA Champions LeagueEurope

Props & Slots

Props

Prop nameDescriptionTypeValuesDefault
colorThe color of the component.
@default primary
Color-'primary'
noElevationRemove the elevation of the component
@default false
boolean-false
paddingAdd padding to the content
@default true
boolean-true
contentClassThe classes to apply to the content divTSIndexedAccessType-undefined
contentStyleStyle apply to the content divStyleValue-undefined
innerOpacityThe opacity of the inner div - should be between 0 and 1
When 0 the spotlight is completely visible
When 1 the spotlight is only visible on borders
@default 0.95
number-0.95

Slots

NameDescriptionBindings
default