File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,17 @@ const Alert = forwardRef(
9191
9292Alert . displayName = 'Alert'
9393
94+ /**
95+ * @typedef {Object } AlertProps
96+ * @property {string } className - Classname of the alert
97+ * @property {React.FC<PropTypes.InferProps<typeof Icon.propTypes>>|false } icon - Icon component to display in the alert (or false to hide it)
98+ * @property {'primary'|'secondary'|'success'|'error'|'warning'|'info' } severity - Severity of the alert (default: primary)
99+ * @property {boolean } block - Block the alert to the full width of its container (default: false)
100+ * @property {string } color - Background color of the alert
101+ * @property {boolean } square - Square the alert corners (default: false)
102+ * @property {'standard'|'outlined'|'filled' } variant - Variant of the alert (default: standard)
103+ */
104+
94105export const AlertPropTypes = {
95106 className : PropTypes . string ,
96107 icon : PropTypes . oneOfType ( [ PropTypes . element , PropTypes . bool ] ) ,
You can’t perform that action at this time.
0 commit comments