@enact/moonstone
Version:
Large-screen/TV support library for Enact, containing a variety of UI components.
29 lines (23 loc) • 852 B
TypeScript
// Type definitions for moonstone/SwitchItem
import { ToggleItemProps as moonstone_ToggleItem_ToggleItemProps } from "@enact/moonstone/ToggleItem";
import * as React from "react";
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
export interface SwitchItemProps
extends Omit<moonstone_ToggleItem_ToggleItemProps, "iconComponent"> {
/**
* Customizes the component by mapping the supplied collection of CSS class names to the
corresponding internal elements and states of this component.
*
* The following classes are supported:
* * `switchItem` - The root class name
*/
css?: object;
}
/**
* Renders an item with a .
*/
export class SwitchItem extends React.Component<
Merge<React.HTMLProps<HTMLElement>, SwitchItemProps>
> {}
export default SwitchItem;