UNPKG

carbon-custom-elements

Version:

A Carbon Design System variant that's as easy to use as native HTML elements, with no framework tax, no framework silo.

38 lines (33 loc) 845 B
/** * @license * * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { Component } from 'react'; interface ComponentProps { /** * The text for the checked state. */ checkedText?: string; /** * Toggle size. */ size?: string; /** * The text for the unchecked state. */ uncheckedText?: string; } /** * Basic toggle. * @element bx-toggle * @slot label-text - The label text. * @slot checked-text - The text for the checked state. * @slot unchecked-text - The text for the unchecked state. * @fires bx-toggle-changed - The custom event fired after this changebox changes its checked state. */ declare class BXToggle extends Component<ComponentProps> {} export default BXToggle;