SONAX Application UI

Teaser

Demos

Default

import { ButtonLink, Heading, Teaser, Text } from 'sxa-ui'
import { RiArrowRightSLine } from '@remixicon/react'

function Demo() {
  return (
    <Teaser
      backgroundImage={
        <img
          src='https://placehold.co/1280x360'
          style={{ width: '100%', height: '100%', objectFit: 'cover' }}
          alt=''
        />
      }
      title={
        <Heading size={Heading.sizes.h2}>Discover our new collection</Heading>
      }
      copy={
        <Text>Explore the latest products and find what fits your needs.</Text>
      }
      action={<ButtonLink label='Learn more' iconEnd={RiArrowRightSLine} />}
    />
  )
}

export default Demo