Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Latest commit

 

History

History
111 lines (88 loc) · 4.09 KB

carousel.md

File metadata and controls

111 lines (88 loc) · 4.09 KB

Carousel

It is a element for cycling through elements with animation effects. All child elements will are the slides of the carousel.

carousel

Usage

import React from 'react';
import ReactDom from 'react-dom';
import { Carousel, Image } from '@quarkly/elements';

ReactDom.render(
    <Carousel dots height="400px" bg="black">
      <Image
        src="https://www.jpl.nasa.gov/images/mars/20160421/PIA00407-16.jpg"
        variant="fluid"
        height="400px"
      />
      <Image
        src="https://photojournal.jpl.nasa.gov/jpeg/PIA18182.jpg"
        variant="fluid"
        height="400px"
      />
      <Image
        src="https://www.jpl.nasa.gov/images/cassini/20160408/PIA11141-16.jpg"
        variant="fluid"
        height="400px"
      />
    </Carousel>
  document.getElementById('root'),
);

Props

Style props

Base

  • variant

Layout

Spaces

  • p
  • pt
  • pr
  • pb
  • pl
  • px
  • py
  • m
  • mt
  • mr
  • mb
  • ml
  • mx
  • my

Flex

Grid

Background

Misc

Position