github.com/uchennaokeke444/nomad@v0.11.8/website/components/featured-slider/index.props.js (about)

     1  import React from 'react'
     2  import PropTypes from 'prop-types'
     3  import FeaturedSlider from './dist/index.js'
     4  
     5  function FeaturedSliderProps(props) {
     6    return <FeaturedSlider {...props} />
     7  }
     8  
     9  FeaturedSliderProps.propTypes = {
    10    theme: PropTypes.oneOf(['light', 'dark']),
    11    brand: PropTypes.oneOf([
    12      'hashicorp',
    13      'terraform',
    14      'vault',
    15      'consul',
    16      'nomad',
    17      'packer',
    18      'vagrant'
    19    ]),
    20    features: PropTypes.arrayOf(
    21      PropTypes.shape({
    22        logo: PropTypes.shape({
    23          url: PropTypes.string,
    24          alt: PropTypes.string
    25        }),
    26        image: PropTypes.shape({
    27          url: PropTypes.string,
    28          alt: PropTypes.string
    29        }),
    30        heading: PropTypes.string,
    31        content: PropTypes.string,
    32        link: PropTypes.shape({
    33          text: PropTypes.string,
    34          url: PropTypes.string,
    35          type: PropTypes.oneOf(['anchor', 'inbound', 'outbound'])
    36        })
    37      })
    38    )
    39  }
    40  
    41  export default FeaturedSliderProps