UNPKG

@magicbell/magicbell-react

Version:

React components for building a notification inbox for your app

16 lines (15 loc) 398 B
import React from 'react'; interface Props { id: string; label?: string | React.ReactNode; value?: boolean; onClick: (value: boolean) => void; } /** * Toggle input. * * @example * <ToggleInput label="Enable notifications" value={false} onClick={toggleNotifications} /> */ export default function ToggleInput({ id, label, value, onClick }: Props): React.JSX.Element; export {};