We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import styled from 'styled-components'; import tw from 'twin.macro'; type InputTextProps = { $width?: string; $isValid?: boolean; $void?: boolean; $resize?: boolean; }; const InputDefault = styled.input<InputTextProps>` ${tw` h-8 rounded-md px-2 transition placeholder:text-gray-300 hover:outline-gray-400 focus:!outline-none focus:ring focus:ring-main `} ${(props) => (props.$void ? '' : tw`outline outline-1`)} ${(props) => props.$isValid === false ? tw`outline-label-red text-label-red` : tw`outline-gray-300`} ${(props) => (props.$width ? `width:${props.$width};` : tw`grow`)} `; const InputTitle = styled.input<InputTextProps>` ${tw` h-8 bg-transparent font-bold px-2 transition placeholder:text-gray-300 hover:border-gray-400 focus:!outline-none focus:border-main `} ${(props) => (props.$void ? '' : tw`border-b-2`)} ${(props) => props.$isValid === false ? tw`border-label-red text-label-red` : tw`border-gray-300`} ${(props) => (props.$width ? `width:${props.$width};` : tw`grow`)} `; const InputTextArea = styled.textarea<InputTextProps>` ${tw` rounded-md px-2 transition placeholder:text-gray-300 hover:outline-gray-400 focus:!outline-none focus:ring focus:ring-main `} ${(props) => (props.$void ? '' : tw`outline outline-1`)} ${(props) => props.$isValid === false ? tw`outline-label-red text-label-red` : tw`outline-gray-300`} ${(props) => (props.$width ? `width:${props.$width};` : tw`grow`)} ${(props) => (props.$resize === false ? tw`resize-none` : '')} `; export { InputDefault, InputTitle, InputTextArea };
해당 컴포넌트를 분리하고 스타일 옵션과 컴포넌트 옵션을 분리합니다.
2일
The text was updated successfully, but these errors were encountered:
Feat(#38): Input 컴포넌트 및 스타일 파일 생성
07bd8f9
Feat(#38): Input 기본 스타일 코드 작성
436935a
Feat(#38): Input 컴포넌트 생성
6e7d510
Feat(#38): Input Story Book 추가
6c57ea8
KIMSEI1124
No branches or pull requests
📑 개요
해당 컴포넌트를 분리하고 스타일 옵션과 컴포넌트 옵션을 분리합니다.
🚀 상세 작업 내용
⏰ 예상 소요 시간
2일
📁 ETC
The text was updated successfully, but these errors were encountered: