= (props) => {
+ const side = props.side || 'left';
+
+ return (
+
+ {side === 'right' && (
+
+ )}
+
+
+
+ {side === 'left' && (
+
+ )}
+
+ );
+};
+
+const SwitchText = (props: Props) => (
+
+
+ {props.description && (
+
+ {props.description}
+
+ )}
+
+);
+
+export default Switch;
diff --git a/packages/tailwind-ui/src/index.ts b/packages/tailwind-ui/src/index.ts
index 555c90da9..a7415c288 100644
--- a/packages/tailwind-ui/src/index.ts
+++ b/packages/tailwind-ui/src/index.ts
@@ -4,3 +4,4 @@ export { default as Dropdown } from './components/Dropdown';
export { default as Input } from './components/Input';
export { default as Listbox } from './components/Listbox';
export { default as Navbar } from './components/Navbar';
+export { default as Switch } from './components/Switch';