Skip to content

Commit e43b417

Browse files
authored
Add textAlign prop to TextInput (#603)
1 parent 4a265f0 commit e43b417

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/input/styled.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const Input = styled(Flex).attrs(props => ({
3232
${({ hasIconLeft }) => hasIconLeft && "padding-left: 24px;"}
3333
${({ hasIconRight, hasIndicator }) =>
3434
(hasIconRight || hasIndicator) && `padding-right: ${hasIconRight && hasIndicator ? 48 : 24}px;`}
35+
${({ textAlign }) => (textAlign ? `text-align: ${textAlign};` : "")}
3536
3637
&::placeholder {
3738
font-size: 12px;

0 commit comments

Comments
 (0)