-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
emotionversion: 10.0.0reactversion: 16.6.3typescriptversion: 3.1.6
Relevant code.
const flexContainer = css`
display: flex;
justify-content: space-between;
`;What you did:
I've tried to use it as:
<div className={flexContainer.styles} />Or:
<div css={flexContainer} />What happened:
I've got this in html:
<div class="
display: flex;
justify-content: space-between;
"></div>
Or:
<div css="[object Object]"></div>I'm using only TypeScript without babel.
Problem description:
How can I use css or className with emotion v10 and TypeScript?
diegolacarta, AntoninSorrento, resir014, pradel, andriictkn and 29 morechenyong, konstantin24121 and peduartemitsuru793