Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98221585
Slider.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
Sat, Jan 11, 04:56
Size
4 KB
Mime Type
text/x-java
Expires
Mon, Jan 13, 04:56 (2 d)
Engine
blob
Format
Raw Data
Handle
23524790
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
Slider.d.ts
View Options
import * as React from 'react';
import {
ExtendSliderUnstyledTypeMap,
ExtendSliderUnstyled,
SliderUnstyledTypeMap,
SliderValueLabelProps,
} from '@mui/base/SliderUnstyled';
import { SxProps } from '@mui/system';
import { OverridableStringUnion } from '@mui/types';
import { Theme } from '../styles';
import { OverrideProps } from '../OverridableComponent';
export interface SliderPropsColorOverrides {}
export interface SliderPropsSizeOverrides {}
export type SliderTypeMap<
D extends React.ElementType = 'span',
P = {},
> = ExtendSliderUnstyledTypeMap<{
props: P & {
/**
* 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', SliderPropsColorOverrides>;
/**
* The components used for each slot inside.
*
* This prop is an alias for the `slots` prop.
* It's recommended to use the `slots` prop instead.
*
* @default {}
*/
components?: {
Root?: React.ElementType;
Track?: React.ElementType;
Rail?: React.ElementType;
Thumb?: React.ElementType;
Mark?: React.ElementType;
MarkLabel?: React.ElementType;
ValueLabel?: React.ElementType;
Input?: React.ElementType;
};
/**
* The extra props for the slot components.
* You can override the existing props or add new ones.
*
* This prop is an alias for the `slotProps` prop.
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
*
* @default {}
*/
componentsProps?: SliderUnstyledTypeMap['props']['slotProps'];
/**
* Override or extend the styles applied to the component.
*/
classes?: SliderUnstyledTypeMap['props']['classes'] & {
/** Class name applied to the root element if `color="primary"`. */
colorPrimary?: string;
/** Class name applied to the root element if `color="secondary"`. */
colorSecondary?: string;
/** Class name applied to the root element if `size="small"`. */
sizeSmall?: string;
/** Class name applied to the thumb element if `color="primary"`. */
thumbColorPrimary?: string;
/** Class name applied to the thumb element if `color="secondary"`. */
thumbColorSecondary?: string;
/** Class name applied to the thumb element if `size="small"`. */
thumbSizeSmall?: string;
};
/**
* The size of the slider.
* @default 'medium'
*/
size?: OverridableStringUnion<'small' | 'medium', SliderPropsSizeOverrides>;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
};
defaultComponent: D;
}>;
export { SliderValueLabelProps } from '@mui/base/SliderUnstyled';
type SliderRootProps = NonNullable<SliderTypeMap['props']['componentsProps']>['root'];
type SliderMarkProps = NonNullable<SliderTypeMap['props']['componentsProps']>['mark'];
type SliderMarkLabelProps = NonNullable<SliderTypeMap['props']['componentsProps']>['markLabel'];
type SliderRailProps = NonNullable<SliderTypeMap['props']['componentsProps']>['rail'];
type SliderTrackProps = NonNullable<SliderTypeMap['props']['componentsProps']>['track'];
type SliderThumbProps = NonNullable<SliderTypeMap['props']['componentsProps']>['thumb'];
export declare const SliderRoot: React.FC<SliderRootProps>;
export declare const SliderMark: React.FC<SliderMarkProps>;
export declare const SliderMarkLabel: React.FC<SliderMarkLabelProps>;
export declare const SliderRail: React.FC<SliderRailProps>;
export declare const SliderTrack: React.FC<SliderTrackProps>;
export declare const SliderThumb: React.FC<SliderThumbProps>;
export declare const SliderValueLabel: React.FC<SliderValueLabelProps>;
/**
*
* Demos:
*
* - [Slider](https://mui.com/material-ui/react-slider/)
*
* API:
*
* - [Slider API](https://mui.com/material-ui/api/slider/)
* - inherits [SliderUnstyled API](https://mui.com/base/api/slider-unstyled/)
*/
declare const Slider: ExtendSliderUnstyled<SliderTypeMap>;
export type SliderClassKey = keyof NonNullable<SliderTypeMap['props']['classes']>;
export type SliderProps<
D extends React.ElementType = SliderTypeMap['defaultComponent'],
P = {},
> = OverrideProps<SliderTypeMap<D, P>, D>;
export type SliderClasses = Record<SliderClassKey, string>;
export declare const sliderClasses: SliderClasses;
export default Slider;
Event Timeline
Log In to Comment