Skip to content

Commit

Permalink
docs(IconStack): Add PropTypes to component
Browse files Browse the repository at this point in the history
  • Loading branch information
Merkur39 committed May 29, 2024
1 parent 1895af7 commit 4110325
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions react/IconStack/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react'
import classNames from 'classnames'
import PropTypes from 'prop-types'

import migrateProps from '../helpers/migrateProps'
import styles from './styles.styl'
Expand Down Expand Up @@ -34,6 +35,17 @@ const IconStack = ({
)
}

IconStack.propTypes = {
backgroundClassName: PropTypes.string,
foregroundClassName: PropTypes.string,
backgroundIcon: PropTypes.node,
foregroundIcon: PropTypes.node,
offset: PropTypes.shape({
vertical: PropTypes.string,
horizontal: PropTypes.string
})
}

export default migrateProps([
{ src: 'className', dest: 'backgroundClassName' },
{ src: 'background', dest: 'backgroundIcon' },
Expand Down

0 comments on commit 4110325

Please sign in to comment.