UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

34 lines (28 loc) 793 B
'use strict'; var React = require('react'); var styled = require('styled-components'); var sx = require('../sx.js'); function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; } var React__default = /*#__PURE__*/_interopDefault(React); var styled__default = /*#__PURE__*/_interopDefault(styled); function Octicon({ icon: IconComponent, ...rest }) { return /*#__PURE__*/React__default.default.createElement(IconComponent, rest); } Octicon.displayName = "Octicon"; const StyledOcticon = styled__default.default(Octicon).withConfig({ displayName: "StyledOcticon", componentId: "sc-1wsaof9-0" })(["", ""], ({ color, sx: sxProp }) => sx.default({ sx: { color, ...sxProp } })); var StyledOcticon$1 = StyledOcticon; module.exports = StyledOcticon$1;