rsnext/examples/with-compiled-css/components/styled-button.js
DOUGES 40f4cf4866
chore: adds compiled css example (#22786)
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.
2021-03-08 21:25:49 +00:00

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};
`