1
import * as React from 'react';
2 4
import { createHostComponent } from '@remax/shared';
3

4
export interface SwitchProps {
5
  readonly dataset?: DOMStringMap;
6
  id?: string;
7
  className?: string;
8
  name?: string;
9
  checked?: boolean;
10
  disabled?: boolean;
11
  color?: string;
12
  controlled?: boolean;
13
  onChange?: (e: any) => void;
14
}
15

16 4
export const Switch: React.ComponentType<SwitchProps> = createHostComponent<SwitchProps>('switch');

Read our documentation on viewing source code .

Loading