-
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(item): add props in Item such as title & description & hoverInne…
…rBorder color #164 1. titleColor 2. descriptionColor 3. hoverdInnerBorderColor
- Loading branch information
Showing
2 changed files
with
72 additions
and
34 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,20 +1,42 @@ | ||
export interface ItemPropsType extends Description, TextRisingSpeed { | ||
redirectURL?: string; | ||
export interface ItemPropsType { | ||
/** | ||
* Image source url (default: {@link https://picsum.photos/600/600/?random image}) | ||
*/ | ||
src?: string; | ||
isTextRising?: boolean; | ||
} | ||
|
||
interface Description { | ||
/** | ||
* Main Title Text (default: 'This is title') | ||
*/ | ||
title?: string; | ||
/** | ||
* Description Text (default: 'description') | ||
*/ | ||
description?: string; | ||
} | ||
|
||
interface TextRisingSpeed { | ||
/** | ||
* title text color style (default: 'white') | ||
*/ | ||
titleColor?: string; | ||
/** | ||
* description text color style (default: 'white') | ||
*/ | ||
descriptionColor?: string; | ||
/** | ||
* URL you want to redirect when clicked (default: '/') | ||
*/ | ||
redirectURL?: string; | ||
/** | ||
* (default: 300) | ||
*/ | ||
textRisingSpeed?: number; | ||
/** | ||
* (default: false) | ||
*/ | ||
isTextRising?: boolean; | ||
/** | ||
* Inner border color of item when hoverd (default: 'white') | ||
*/ | ||
hoverdInnerBorderColor?: string; | ||
} | ||
|
||
export interface ItemDescriptionWrapperStyledPropsType extends TextRisingSpeed { | ||
export interface topType { | ||
top: number; | ||
} | ||
|
||
export interface ItemDescriptionPropsType extends Description, ItemDescriptionWrapperStyledPropsType {} |
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