How to use the @pluralsight/ps-design-system-util.string function in @pluralsight/ps-design-system-util

To help you get started, we’ve selected a few @pluralsight/ps-design-system-util 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 / common / components / example / format-react.js View on Github external
Object.keys(permutation).reduce((acc, key) => {
    if (/^example/.test(key)) return acc

    const exampleKey = 'example' + util.string.capitalize(key)
    acc += ` ${key}=${permutation[exampleKey]
      ? permutation[exampleKey]
      : `"${permutation[key]}"`}`
    return acc
  }, '')
github pluralsight / design-system / packages / site / src / common / components / spacing / example.js View on Github external
const renderSingleLine = (props, side, i) => {
  const className = classnames({
    [props.css.lineSingleSide]: props.sides !== 'all',
    [props.css['line' + util.string.capitalize(side)]]: true
  })

  return (
    <div style="{{">
  )
}
</div>
github pluralsight / design-system / packages / site / src / layouts / chrome.js View on Github external
const formatTitle = props =>
  props.title
    ? util.string.capitalize(props.title) + ' | ' + defaultTitle
    : defaultTitle

@pluralsight/ps-design-system-util

Runtime dependencies for utilitarian tasks. Analogous to a lodash.

Apache-2.0
Latest version published 2 years ago

Package Health Score

54 / 100
Full package analysis

Similar packages