Skip to content

Instantly share code, notes, and snippets.

@Remownz
Remownz / Tab.jsx
Created Oct 5, 2017
Usage of withAsyncFonts with styled-components and semantic-ui-react
View Tab.jsx
const StyledTab = styled(({ baseFont, headingFont, textFont, iconsFont, ...rest }) => <SemanticTab {...rest} />)`
&&& .tabular.menu {
display: flex;
font-family: ${props => props.baseFont.styles.fontFamily};
&>.item {
display: inline-block;
font-weight: normal;
text-align: center;
flex-grow: 1;
View carousel.js