carbon-react
Version:
A library of reusable React components for easily building user interfaces.
2 lines (1 loc) • 516 B
JavaScript
import t,{css as e}from"styled-components";import{padding as a}from"styled-system";import s from"../../../style/themes/apply-base-theme.js";const i=t.div.attrs(s).withConfig({displayName:"tab.style__StyledTab",componentId:"sc-5bd445da-0"})(["display:none;",""],(({isTabSelected:t,position:s="top"})=>t&&e(["display:block;"," "," ",""],"top"===s&&e(["margin-left:4px;margin-right:4px;"]),"left"===s&&e(["margin-left:-6px;margin-top:var(--spacing075);width:calc(80% + var(--spacing075));"]),a)));export{i as default};