Web: Components: Snackbar - added description
This commit is contained in:
parent
a742fbb765
commit
b7ddf6644b
@ -187,24 +187,44 @@ class SnackBar extends React.Component {
|
||||
}
|
||||
|
||||
SnackBar.propTypes = {
|
||||
/** Specifies the Snackbar text */
|
||||
text: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
||||
/** Specifies the header text */
|
||||
headerText: PropTypes.string,
|
||||
/** Specifies the button text */
|
||||
btnText: PropTypes.string,
|
||||
/** Specifies the source of the image used as the Snackbar background */
|
||||
backgroundImg: PropTypes.string,
|
||||
/** Specifies the background color */
|
||||
backgroundColor: PropTypes.string,
|
||||
/** Specifies the text color */
|
||||
textColor: PropTypes.string,
|
||||
/** Displays the icon */
|
||||
showIcon: PropTypes.bool,
|
||||
/** Sets a callback function that is triggered when the Snackbar is clicked */
|
||||
clickAction: PropTypes.func,
|
||||
/** Sets the font size */
|
||||
fontSize: PropTypes.string,
|
||||
/** Sets the font weight */
|
||||
fontWeight: PropTypes.string,
|
||||
/** Specifies the text alignment */
|
||||
textAlign: PropTypes.string,
|
||||
/** Allows displaying content in HTML format */
|
||||
htmlContent: PropTypes.string,
|
||||
/** Accepts css */
|
||||
style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
||||
/** Sets the countdown time */
|
||||
countDownTime: PropType.number,
|
||||
/** Sets the section width */
|
||||
sectionWidth: PropTypes.number,
|
||||
/** Required in case the snackbar is a campaign banner */
|
||||
isCampaigns: PropTypes.bool,
|
||||
/** Used as an indicator that a web page has fully loaded, including its content, images, style files, and external scripts */
|
||||
onLoad: PropTypes.func,
|
||||
/** Required in case the snackbar is a notification banner */
|
||||
isMaintenance: PropTypes.bool,
|
||||
/** Sets opacity */
|
||||
opacity: PropTypes.number,
|
||||
};
|
||||
|
||||
SnackBar.defaultProps = {
|
||||
|
Loading…
Reference in New Issue
Block a user