sendou.ink/app/components/elements/Switch.tsx
Kalle fef1ffc955
Design refresh + a bunch of stuff (#2864)
Co-authored-by: hfcRed <hfcred@gmx.net>
2026-03-19 17:51:42 +02:00

19 lines
464 B
TypeScript

import {
Switch as ReactAriaSwitch,
type SwitchProps as ReactAriaSwitchProps,
} from "react-aria-components";
import styles from "./Switch.module.css";
interface SendouSwitchProps extends ReactAriaSwitchProps {
children?: React.ReactNode;
}
export function SendouSwitch({ children, ...rest }: SendouSwitchProps) {
return (
<ReactAriaSwitch {...rest} className={styles.root}>
<div className={styles.indicator} />
{children}
</ReactAriaSwitch>
);
}