React component to toggle the dark mode. See DarkToggleProps
DarkToggle(props: DarkToggleProps): ReactNode | Promise<ReactNode>
static displayName?: string
Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.
Legacy React Docs
const MyComponent: FC = () => { return Hello! } MyComponent.displayName = 'MyAwesomeComponent' Copy
const MyComponent: FC = () => { return Hello! } MyComponent.displayName = 'MyAwesomeComponent'
static propTypes?: any
Ignored by React.
Only kept in types for backwards compatibility. Will be removed in a future major release.
React component to toggle the dark mode. See DarkToggleProps