Closed Britman72 closed 4 months ago
@Britman72 here is the correct example:
<Switch
id="custom-switch-component"
ripple={false}
className="h-full w-full checked:bg-[#134475]"
containerProps={{
className: "w-11 h-6",
}}
circleProps={{
className: "before:hidden left-0.5 border-none",
}}
/>
Using the Switch component in React, looks like this:
Index.css:
index.js:
tailwind.config.js:
Component (used from docs):