0.0.5 • Published 4 years ago
code-avenue-design-system v0.0.5
Button:
Props:
- isLoading (Boolean) (required): this will decide whether the content inside the button will be visible or the loader will be visible.
- isDisabled (Boolean) (required): this will decide whether the button is perusable or not.
- onPress (Function) (required): the method to be called when button is pressed.
- width (Number) (optional): with this the button’s width can be customized. But a default value should always be present.
- height (Number) (optional): with this the button’s height can be customized. But a default value should always be present.
- Icon (Component) (not required if label is passed): this will show an Icon inside button.
- Label (text) (not required if Icon is passed): this will show text inside button.
- Color (text) (optional): this will change the default color. But, default value should always be present.
Header:
Props:
- leftItem (Object) (optional): this will show Item on Left
- rightItem (Object) (optional): this will show Item on Right
- centerItem (Object) (optional): this will show Item on Center
Example Item: {
type (required): “icon” || “text”,
value (required): “any text or icon name”,
onPress (optional)
}