Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101609259
Switch.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Feb 12, 01:16
Size
2 KB
Mime Type
text/x-java
Expires
Fri, Feb 14, 01:16 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24195375
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
Switch.d.ts
View Options
import * as React from 'react';
import { SxProps } from '@mui/system';
import { OverridableStringUnion } from '@mui/types';
import { InternalStandardProps as StandardProps, Theme } from '..';
import { SwitchBaseProps } from '../internal/SwitchBase';
import { SwitchClasses } from './switchClasses';
export interface SwitchPropsSizeOverrides {}
export interface SwitchPropsColorOverrides {}
export interface SwitchProps
extends StandardProps<SwitchBaseProps, 'checkedIcon' | 'color' | 'icon'> {
/**
* The icon to display when the component is checked.
*/
checkedIcon?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<SwitchClasses>;
/**
* The color of the component.
* It supports both default and custom theme colors, which can be added as shown in the
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
* @default 'primary'
*/
color?: OverridableStringUnion<
'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'default',
SwitchPropsColorOverrides
>;
/**
* If `true`, the component is disabled.
*/
disabled?: boolean;
/**
* The icon to display when the component is unchecked.
*/
icon?: React.ReactNode;
/**
* The size of the component.
* `small` is equivalent to the dense switch styling.
* @default 'medium'
*/
size?: OverridableStringUnion<'small' | 'medium', SwitchPropsSizeOverrides>;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* The value of the component. The DOM API casts this to a string.
* The browser uses "on" as the default value.
*/
value?: unknown;
}
/**
*
* Demos:
*
* - [Switch](https://mui.com/material-ui/react-switch/)
* - [Transfer List](https://mui.com/material-ui/react-transfer-list/)
*
* API:
*
* - [Switch API](https://mui.com/material-ui/api/switch/)
* - inherits [IconButton API](https://mui.com/material-ui/api/icon-button/)
*/
export default function Switch(props: SwitchProps): JSX.Element;
Event Timeline
Log In to Comment