type Override = Omit & T interface ContentSwitcherProps { /** * Switch components. */ children: React.ReactNode } declare function ContentSwitcher( props: Override> ): JSX.Element interface SwitchProps { /** * Switch caption. */ children: React.ReactNode /** * Index of the Switch. */ value: number /** * Adds styles to show the Switch is active. */ active?: boolean /** * Callback to handle Switch selection. * * The function accepts 2 arguments: * * - value: `value` prop of the Switch. * - options: object containing the React synthetic event. * * ```js * onAction(value, { event }) { * console.log(value) * } * ``` */ onAction?: (...args: any[]) => any /** * Size of the Switches. Accepts one of "s" or "m" for small & medium. */ size?: "s" | "m" /** * Renders icon as caption. */ icon?: boolean /** * Icons to add more context to the textual caption. * * Accepts SVG or SVG wrapped React component. Checkout `@asphalt-react/iconpack` for SVG wrapped React components. * * > ⚠️ Do not use `qualifier` to render a Switch with icon as caption; use `icon` prop instead. */ qualifier?: React.ReactElement /** * Appends qualifier to the text in caption. Switch prepends the qualifier by default. */ qualifierEnd?: boolean /** * Applies accent intent when Switch is active. */ accent?: boolean } declare function Switch( props: Override> ): JSX.Element export { ContentSwitcher, Switch }; export type { ContentSwitcherProps, SwitchProps }; //# sourceMappingURL=index.d.ts.map