-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(image): add props in Image such as subheadColor etc. #164
1. subheadSize 2. subheadColor 3. headSize 4. headWeight 5. headColor
- Loading branch information
Showing
2 changed files
with
116 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,46 @@ | ||
export interface ImagePropsType { | ||
src: string; | ||
/** | ||
* Image source url. (default: {@link https://picsum.photos/300/300/?random}) | ||
*/ | ||
src?: string; | ||
/** | ||
* Sub title text. (default: 'Write your subhead') | ||
*/ | ||
subhead?: string; | ||
/** | ||
* subhead text size style. (default: '14px') | ||
*/ | ||
subheadSize?: string; | ||
/** | ||
* subhead text color size style. (default: 'black') | ||
*/ | ||
subheadColor?: string; | ||
/** | ||
* Main title text. (default: 'Write your head') | ||
*/ | ||
head?: string; | ||
/** | ||
* head text size style. (default: '20px') | ||
*/ | ||
headSize?: string; | ||
/** | ||
* head text weight style. (default: '700') | ||
*/ | ||
headWeight?: string; | ||
/** | ||
* head color style. (default: 'black') | ||
*/ | ||
headColor?: string; | ||
/** | ||
* URL you want to redirect when clicked. (default: '/') | ||
*/ | ||
redirectURL?: string; | ||
/** | ||
* If this value is set to True, you can hide the head text. (default: false) | ||
*/ | ||
noShowHead?: boolean; | ||
zoomWhenHover?: boolean; | ||
} | ||
|
||
export interface ImageItemsStyledPropsType { | ||
noShowHead?: boolean; | ||
/** | ||
* If this value is set to True, you can zoom image when hovered on item. (default: true) | ||
*/ | ||
zoomWhenHover?: boolean; | ||
} |
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