Skip to content

Commit

Permalink
refactor: Text Props Type 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jikwan0327 committed Aug 30, 2023
1 parent 0a55384 commit 45a0648
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Text/Text.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from 'styled-components';
import styled, { CSSProperties } from 'styled-components';
import { ReactNode } from 'react';
import { colorKeyOfType } from '../../styles/theme/color';
import { fontKeyOfType } from '../../styles/theme/font';
Expand All @@ -9,13 +9,13 @@ interface TextProps extends marginCssType {
className?: string;
children?: ReactNode;
color?: colorKeyOfType;
display?: 'inline' | 'inline-block' | 'block';
display?: CSSProperties['display'];
size?: fontKeyOfType;
onClick?: () => void;
cursor?: 'pointer' | 'auto' | 'default';
align?: 'center' | 'start' | 'end';
cursor?: CSSProperties['cursor'];
align?: CSSProperties['alignItems'];
width?: number;
whiteSpace?: 'nowrap' | 'pre-line' | 'pre-wrap' | 'normal';
whiteSpace?: CSSProperties['whiteSpace'];
}

export const Text = ({
Expand Down

0 comments on commit 45a0648

Please sign in to comment.