open-nomad/website/components/featured-slider/index.props.js

42 lines
945 B
JavaScript
Raw Normal View History

2020-02-14 15:11:37 +00:00
import React from 'react'
import PropTypes from 'prop-types'
import FeaturedSlider from './dist/index.js'
function FeaturedSliderProps(props) {
return <FeaturedSlider {...props} />
}
FeaturedSliderProps.propTypes = {
theme: PropTypes.oneOf(['light', 'dark']),
brand: PropTypes.oneOf([
'hashicorp',
'terraform',
'vault',
'consul',
'nomad',
'packer',
2020-09-30 13:48:40 +00:00
'vagrant',
2020-02-14 15:11:37 +00:00
]),
features: PropTypes.arrayOf(
PropTypes.shape({
logo: PropTypes.shape({
url: PropTypes.string,
2020-09-30 13:48:40 +00:00
alt: PropTypes.string,
2020-02-14 15:11:37 +00:00
}),
image: PropTypes.shape({
url: PropTypes.string,
2020-09-30 13:48:40 +00:00
alt: PropTypes.string,
2020-02-14 15:11:37 +00:00
}),
heading: PropTypes.string,
content: PropTypes.string,
link: PropTypes.shape({
text: PropTypes.string,
url: PropTypes.string,
2020-09-30 13:48:40 +00:00
type: PropTypes.oneOf(['anchor', 'inbound', 'outbound']),
}),
2020-02-14 15:11:37 +00:00
})
2020-09-30 13:48:40 +00:00
),
2020-02-14 15:11:37 +00:00
}
export default FeaturedSliderProps