-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c2b11a
commit 491dfbf
Showing
8 changed files
with
1,201 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
export interface ClampTextProps { | ||
autoresize?: boolean; | ||
maxLines: number; | ||
maxHeight: number | string; | ||
ellipsis?: string; | ||
expanded?: boolean; | ||
content: string; | ||
} | ||
declare const ClampText: React.FC<ClampTextProps>; | ||
export default ClampText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react'; | ||
export interface ReactSimpleClampProps<T> { | ||
autoresize?: boolean; | ||
maxLines: number; | ||
maxHeight: number | string; | ||
ellipsis?: string; | ||
expanded?: boolean; | ||
content: T; | ||
renderContent: () => React.ReactElement; | ||
renderClampedContent: (offset: number, ellipsis: string) => React.ReactElement; | ||
} | ||
declare const ReactSimpleClamp: React.FC<ReactSimpleClampProps<string | Array<string>>>; | ||
export default ReactSimpleClamp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,2 @@ | ||
import React from 'react'; | ||
export interface ReactSimpleClampProps { | ||
autoresize?: boolean; | ||
maxLines: number; | ||
maxHeight: number | string; | ||
ellipsis?: string; | ||
expanded: boolean; | ||
content: string; | ||
} | ||
declare const ReactSimpleClamp: React.FC<ReactSimpleClampProps>; | ||
export default ReactSimpleClamp; | ||
import ClampText from './ClampText'; | ||
export default ClampText; |
Oops, something went wrong.