How to use the @pluralsight/ps-design-system-theme/react.js.defaultName 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 / site / src / ui / example / react.js View on Github external
ReactExample.propTypes = {
  codes: PropTypes.arrayOf(PropTypes.string),
  decorateCodes: PropTypes.func,
  includes: PropTypes.object,
  /* eslint-disable react/no-unused-prop-types */
  outputChildStyle: PropTypes.object,
  outputStyle: PropTypes.object,
  /* eslint-enable react/no-unused-prop-types */
  themeName: PropTypes.oneOf(Object.keys(Theme.names)),
  themeToggle: PropTypes.bool
}

ReactExample.defaultProps = {
  orient: 'horizontal',
  themeName: Theme.defaultName,
  themeToggle: false
}

export default ReactExample