UNPKG

vcc-ui

Version:

VCC UI is a collection of React UI Components that can be used for developing front-end applications at Volvo Car Corporation.

18 lines 683 B
import React from 'react'; import { storiesOf } from '@storybook/react'; import { FelaTheme } from 'react-fela'; import { select } from '@storybook/addon-knobs'; import { withDarkBackground } from '../../../stories/decorators'; import { Logo } from './'; storiesOf('Images & Icons/Logo', module).addDecorator(withDarkBackground).addWithJSX('Default', function () { return React.createElement(FelaTheme, null, function (_ref) { var logoTypes = _ref.logoTypes; var types = Object.keys(logoTypes).map(function (key) { return logoTypes[key]; }); var type = select('Type', types, types[0]); return React.createElement(Logo, { type: type }); }); });