Methods
Icon(success) → {SVGElement}
Component for getting svg based on prop.
Parameters:
Name | Type | Description |
---|---|---|
success |
boolean | Notification status. |
Returns:
Svg based on notification status.
- Type
- SVGElement
Popup() → {ReactElement}
Popup Component for showing notifications.
Returns:
notificaiton bar component.
- Type
- ReactElement
TextArea(idopt, labelopt, placeholderopt, requiredopt, value, onChange) → {ReactElement}
Component for the custom text-area
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id |
string |
<optional> |
'' | id of the textarea element. |
label |
string |
<optional> |
'' | textarea label (Optional). |
placeholder |
string |
<optional> |
'' | placeholder for the field (Optional). |
required |
boolean |
<optional> |
false | text area field required or not. default to false. |
value |
string | text area value |
||
onChange |
function | callback which fires on textarea change. |
- Source:
Returns:
Customized Textarea component.
- Type
- ReactElement