Files
pole-book/server/node_modules/@strapi/design-system/dist/components/Toggle/Toggle.d.ts

15 lines
696 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import * as React from 'react';
import { Field } from '../Field';
interface ToggleProps extends Omit<React.ComponentPropsWithoutRef<'input'>, 'name' | 'children' | 'required' | 'id' | 'size' | 'checked'>, Pick<Field.InputProps, 'required' | 'name' | 'id' | 'hasError'> {
onLabel: string;
offLabel: string;
checked?: boolean | null;
}
/**
* TODO: This should probably follow the switch button pattern
* as seen https://www.w3.org/WAI/ARIA/apg/patterns/switch/examples/switch-button/
*/
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>;
export { Toggle };
export type { ToggleProps };
//# sourceMappingURL=Toggle.d.ts.map