ef-fullscreen

This element toggles the browser Fullscreen API on a target element.

This element toggles the browser Fullscreen API on a target element.

Attributes

AttributeReact propTypeDefaultDescription
targettargetstring""ID of the target element this component controls or reads from.

Slots

SlotDescription
enterShown when the target element is not in fullscreen mode. Click the target to enter fullscreen.
exitShown while the target element is in fullscreen mode. Click the target to exit fullscreen.

CSS Parts

PartDescription
buttonThe click target that contains the slotted `enter` and `exit` content.