UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

40 lines (31 loc) 1.28 kB
import { SwitchProps } from '@mui/material'; export interface ConsentSolutionSwitchProps extends SwitchProps { /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * if component is loading */ loading?: boolean; } /** * > API documentation for the Community-JS ConsentSolutionSwitch component. Learn about the available props and the CSS API. #### Import ```jsx import {ConsentSolutionSwitch} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCConsentSolutionSwitch` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCConsentSolutionSwitch-root|Styles applied to the root element.| |thumb|.SCConsentSolutionSwitch-thumb|Styles applied to the thumb element.| |thumbChecked|.SCConsentSolutionSwitch-thumb|Styles applied to the checked icon element.| |thumbUnChecked|.SCConsentSolutionSwitch-thumb-checked|Styles applied to the unchecked icon element.| |thumbLoading|.SCConsentSolutionSwitch-thumb-unchecked|Styles applied to the loading icon element.| * @param inProps */ export default function ConsentSolutionSwitch(inProps: ConsentSolutionSwitchProps): JSX.Element;