CM
celesta Mamachan

Custom Switch - Copy this React, Mui Component to your project

create a custom switch component using material UI with properties width, height, border radius, border color, has text, text color and give a condition if switch is checked as true border color and text color should be green also the text should be online otherwise border color and text color should be grey also text should be offline and note that text should be placed inside the toggle switch

Prompt
Component Preview

About

CustomSwitch - A customizable toggle with adjustable width, height, border radius, and color. Displays "online" or "offline" based on s. Copy template now!

Share

Last updated 1 month ago