Skip to content

Instantly share code, notes, and snippets.

@ribeiroevandro
Last active July 9, 2020 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ribeiroevandro/7e0a75f31178e83c0ee409ac0cb95e74 to your computer and use it in GitHub Desktop.
Save ribeiroevandro/7e0a75f31178e83c0ee409ac0cb95e74 to your computer and use it in GitHub Desktop.
import styled, { css } from 'styled-components';
interface ContainerProps {
isFocused: boolean;
isFilled: boolean;
isErrored: boolean;
isFullWidth?: boolean;
}
export const Container = styled.div<ContainerProps>`
background: #fff;
border-radius: 5px;
padding: 16px;
width: ${({ isFullWidth }) => isFullWidth ? '100%' : '436px'};
color: #232323;
display: flex;
align-items: center;
input {
background: transparent;
flex: 1;
border: 0;
color: #333;
font-size: 16px;
font-weight: bold;
font-family: 'Poppins';
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment