Skip to main content

toggle

ToggleButton​

const ToggleButton = () => {
return (
<>
<Toggle
trackColor={{ false: "red", true: "green" }}
thumbColor="red"
value={"huuu"}
/>
</>
);
};

export default ToggleButton;

Api References for ToggleButton

ParameterTypeDescription
trackColor objectcolor for track
thumbColorstringcolor thumb navigation
styleanyyour custom styles