Skip to content

Commit

Permalink
add prop comments
Browse files Browse the repository at this point in the history
Signed-off-by: hiroki.yokouchi <[email protected]>
  • Loading branch information
8845musign committed Jul 12, 2024
1 parent 5e75993 commit e9f6b92
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/Pre/Pre.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ import styles from './Pre.module.css';
type AllowedSpanAttributes = Omit<HTMLAttributes<HTMLSpanElement>, 'className'>;

type Props = {
/**
* 折り返しや空白、改行の扱い
* @default 'pre-line'
*/
whiteSpace?: 'pre' | 'pre-wrap' | 'pre-line' | 'break-spaces';
/**
* inline-blockとして扱う
* @default false
*/
inline?: boolean;
} & AllowedSpanAttributes;

Expand Down

0 comments on commit e9f6b92

Please sign in to comment.