hotkey
Description
Optional. Specifies a hotkey combination to toggle fullscreen modeUsage
hotkey?: string;
Parameters
The property values are the following:
- A string representing a combination of keys, e.g. "ctrl+shift+f"
- If omitted, no hotkey is assigned by default
Example
import { Fullscreen } from '@svar-ui/react-core';
export default function App() {
return (
<Fullscreen hotkey="ctrl+shift+f">
<div>
Fullscreen content
</div>
</Fullscreen>
);
}
Related article: Fullscreen