import React from 'react';
import { Switch } from '@breakaway/preact-core';

export const SwitchUncontrolled: React.FunctionComponent = () => (
  <React.Fragment>
    <Switch
      id="uncontrolled-switch-no-label"
      aria-label="An uncontrolled switch with no label"
      defaultChecked={false}
    />
    <br />
    <Switch id="uncontrolled-switch-with-label" label="An uncontrolled switch" defaultChecked={false} />
  </React.Fragment>
);
