What to Watch - React
import { WhatToWatch } from '@sky-uk/ui-sections';
Example
The WhatToWatch
section features a Rail
of content cards that can be interactive.
Please view this example in fullscreen mode. Click the full screen button above.
Props
Props marked with ?
are optional. Sections or section elements that do not provide the required props will not render.
The data
prop support key/value pairs that are rendered as kebab case data attributes on the component.
- $animated?:
boolean
defaults tofalse
- $appearance?:
string
(default
|light
) - $theme?:
GradientKey
(gradient) - background?:
object
- data?:
object
- header
- body?:
string
- headline:
string
- headlineLevel?:
string
(h1
|h2
|h3
); - overline?:
string
|Image
; - textCta?:
object
- text:
string
- href?:
string
- data?:
object
- onClick?:
function
- target?:
string
- text:
- primaryCta?:
object
- text:
string
- href?:
string
- data?:
object
- onClick?:
function
- target?:
string
- text:
- secondaryCta?:
object
- text:
string
- href?:
string
- data?:
object
- onClick?:
function
- target?:
string
- text:
- body?:
- items:
array
- cta:
object
- text?:
string
- href?:
string
- data?:
object
- onClick?:
function
- target?:
string
- text?:
- title:
string
- href?:
string
- logo?:
- src:
string
- alt?:
string
- src:
- image:
- src:
string
- alt?:
string
- src:
- subTitle?:
string
- cta: