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.

27 lines 791 B
import React from "react"; import { storiesOf } from "@storybook/react"; import { Icon } from "./"; import { Box } from "../box"; import { Block } from "../block"; import { Theme } from "../../"; storiesOf("Images & Icons/Icon", module).addWithJSX("all icons", function () { return React.createElement(Theme, null, function (theme) { return React.createElement(Box, { extend: { flexDirection: "row" } }, theme.icons.map(function (type) { return React.createElement(Block, { key: type, extend: { textAlign: "center", padding: 10 } }, React.createElement(Icon, { type: type, size: "l", color: theme.colors.primary }), React.createElement(Block, null, type)); })); }); });