Skip to content

Commit

Permalink
#46 - feat: TextInputUI의 Container 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
rhino-ty committed May 11, 2023
1 parent dd7a75a commit 49fe088
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/ui/textInputUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function TextInputUI({
message,
}: TextInputProps) {
return (
<>
<S.Container>
{label && <S.DropDownLabel disabled={disabled}>{label}</S.DropDownLabel>}
<S.InputField width={width} error={error}>
<input
Expand All @@ -59,11 +59,15 @@ export default function TextInputUI({
) : (
<Text.Caption3 color="gray900">{message}</Text.Caption3>
)}
</>
</S.Container>
);
}

const S = {
Container: styled.div`
display: flex;
flex-direction: column;
`,
DropDownLabel: styled.label<{ disabled: boolean }>`
margin-bottom: 8px;
font-size: 16px;
Expand Down

0 comments on commit 49fe088

Please sign in to comment.