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
Ligue 1France
Premier LeagueEngland
BundesligaGermany
EredivisieNetherlands
Serie AItaly
Primera DivisionSpain
Primeira LigaPortugal
UEFA Champions LeagueEurope
Props & Slots
Props
Prop name | Description | Type | Values | Default |
---|---|---|---|---|
color | The color of the component.@default primary | Color | - | 'primary' |
noElevation | Remove the elevation of the component@default false | boolean | - | false |
padding | Add padding to the content@default true | boolean | - | true |
contentClass | The classes to apply to the content div | TSIndexedAccessType | - | undefined |
contentStyle | Style apply to the content div | StyleValue | - | undefined |
innerOpacity | The 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
Name | Description | Bindings |
---|---|---|
default |