bigbuffet-rw/app/soapbox/components/ui/toggle/toggle.tsx

15 lines
318 B
TypeScript
Raw Normal View History

import React from 'react';
import ReactToggle, { ToggleProps } from 'react-toggle';
2022-05-06 12:55:16 -07:00
/** A glorified checkbox. Wrapper around react-toggle. */
const Toggle: React.FC<ToggleProps> = ({ icons = false, ...rest }) => {
return (
<ReactToggle
icons={icons}
{...rest}
/>
);
};
export default Toggle;