@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
21 lines (20 loc) • 932 B
TypeScript
import { SystemProps } from "../system/system.js";
import { VuiComponent } from "../core/vui.js";
import "../core/index.js";
import { SwitchProps } from "./switch.types.js";
import { SwitchButton } from "./switchButton.js";
import { SwitchLabel } from "./switchLabel.js";
import "../index.js";
//#region src/switch/switchMain.d.ts
declare const SwitchBase: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, SystemProps, never>;
/**
* Displays a toggle button with supporting text. Allows passing custom elements as side labels and inner labels.
* Forwards many relevant props to the innner input element. Exposes some props to the children via context.
*/
declare const Switch: VuiComponent<'label', SwitchProps> & {
Button: typeof SwitchButton;
Label: typeof SwitchLabel;
};
//#endregion
export { Switch, Switch as default, SwitchBase };
//# sourceMappingURL=switchMain.d.ts.map