40f4cf4866
Hiya! I was asked to add an example of how to use [Compiled](https://compiledcssinjs.com/) with Next.js, figured I might as well at it to the source 😄. Let me know if there's any changes needed.
11 lines
281 B
JavaScript
11 lines
281 B
JavaScript
import { styled } from '@compiled/react'
|
|
|
|
export const Button = styled.button`
|
|
color: ${(props) => props.color};
|
|
background-color: transparent;
|
|
padding: 6px 8px;
|
|
border-radius: 3px;
|
|
width: 100%;
|
|
font-family: sans-serif;
|
|
border: 1px solid ${(props) => props.color};
|
|
`
|