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.
33 lines (31 loc) • 816 B
JavaScript
import React from "react";
import { Block, Inline } from "../index";
var ColorPalette = function ColorPalette(_ref) {
var colors = _ref.colors;
return React.createElement(Block, null, Object.keys(colors).map(function (key) {
return React.createElement(Block, {
key: key,
extend: {
marginBottom: "10px"
}
}, React.createElement(Block, {
extend: {
display: "inline-block",
height: "40px",
width: "40px",
verticalAlign: "middle",
marginRight: "20px",
background: colors[key]
}
}), React.createElement(Inline, {
extend: {
marginRight: "10px"
}
}, key), React.createElement(Inline, {
extend: {
fontSize: "11px"
}
}, colors[key]));
}));
};
export default ColorPalette;