How to use the @pluralsight/ps-design-system-theme/react.withTheme function in @pluralsight/ps-design-system-theme

To help you get started, we’ve selected a few @pluralsight/ps-design-system-theme examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pluralsight / design-system / packages / starrating / src / react / index.js View on Github external
)
  }
}

StarRating.propTypes = {
  onChange: PropTypes.func,
  starCount: PropTypes.number,
  themeName: PropTypes.oneOf(Object.keys(themeNames)).isRequired,
  value: PropTypes.number
}

StarRating.defaultProps = {
  starCount: 5
}

export default withTheme(StarRating)
github pluralsight / design-system / packages / halo / src / react / __stories__ / focusable.js View on Github external
const { shape, themeName, ...filteredProps } = props

  return <div>
}

Focusable.propTypes = {
  shape: PropTypes.string,
  themeName: PropTypes.string
}

Focusable.defaultProps = {
  children: 'focusable',
  tabIndex: 0
}

export default withTheme(Focusable)
</div>