UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

27 lines (24 loc) 550 B
import React__default from 'react'; import styled from 'styled-components'; import sx from '../sx.js'; function Octicon({ icon: IconComponent, ...rest }) { return /*#__PURE__*/React__default.createElement(IconComponent, rest); } Octicon.displayName = "Octicon"; const StyledOcticon = styled(Octicon).withConfig({ displayName: "StyledOcticon", componentId: "sc-1wsaof9-0" })(["", ""], ({ color, sx: sxProp }) => sx({ sx: { color, ...sxProp } })); var StyledOcticon$1 = StyledOcticon; export { StyledOcticon$1 as default };