office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
1 lines • 974 B
JavaScript
define([], function() { return "import * as React from 'react';\r\n\r\n/**\r\n * Toggle component props.\r\n */\r\nexport interface IToggleProps extends React.HTMLProps<HTMLInputElement> {\r\n /**\r\n * A label for the toggle.\r\n */\r\n label?: string;\r\n\r\n /**\r\n * Text to display when toggle is ON.\r\n */\r\n onText?: string;\r\n\r\n /**\r\n * Test display when toggle is OFF.\r\n */\r\n offText?: string;\r\n\r\n /**\r\n * Checked state of the toggle. If you are maintaining state yourself, use this property. Otherwise refer to 'defaultChecked'.\r\n */\r\n checked?: boolean;\r\n\r\n /**\r\n * Initial state of the toggle. If you want the toggle to maintain its own state, use this. Otherwise refer to 'checked'.\r\n */\r\n defaultChecked?: boolean;\r\n\r\n /**\r\n * Optional disabled flag.\r\n */\r\n disabled?: boolean;\r\n\r\n /**\r\n * onchange callback.\r\n */\r\n onChanged?: (checked: boolean) => void;\r\n}"; });