How to use the uikit-react.Button.displayName function in uikit-react

To help you get started, we’ve selected a few uikit-react 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 stipsan / uikit-react / src / stories / Button.js View on Github external
import { storiesOf } from '@kadira/storybook'
import { Button } from 'uikit-react'

// This is to work around: https://github.com/kadirahq/react-storybook-addon-info/issues/26#issuecomment-229029177
Button.displayName = 'Button'

storiesOf('Button', module)
  .addWithInfo('Basic Usage', '', () => (
    <div>
      <button>Primary</button>
      &nbsp;
      <button>Success</button>
      &nbsp;
      <button>Danger</button>
      &nbsp;
      <button>Link</button>
      &nbsp;
      <button type="submit">Submit</button>
    </div>
  ), { header: false, inline: true, propTables: [Button] })

uikit-react

UIkit components for use in React.

ISC
Latest version published 2 years ago

Package Health Score

42 / 100
Full package analysis