TextInput
Universal Props
Name
Type
Default
Description
disabled
boolean
false
If true, disable all interactions for this component.
onChange
()=>{}
Callback when the checkbox is pressed.
color
string
color of checkbox. (not supported for bootstrap).
label
Node
label to show with checkbox.
value
boolean
The value of the checkbox. If true the checkbox will be turned on. Default value is false (not supported for Bootstrap).
testID
string
The value of the checkbox. If true the checkbox will be turned on. Default value is false.
How to use
import React from 'react';
import { withBluerain } from "@blueeast/bluerain-os";
const Checkbox = (props) => {
const BR = props.bluerain;
return (
<BR.Components.Checkbox label="disabled" color="red" disabled={true} />
)
}
export default withBluerain(Checkbox);
Last updated