This element toggles the browser Fullscreen API on a target element.
Attributes
| Attribute | React prop | Type | Default | Description |
|---|
target | target | string | "" | ID of the target element this component controls or reads from. |
Slots
| Slot | Description |
|---|
enter | Shown when the target element is not in fullscreen mode. Click the target to enter fullscreen. |
exit | Shown while the target element is in fullscreen mode. Click the target to exit fullscreen. |
CSS Parts
| Part | Description |
|---|
button | The click target that contains the slotted `enter` and `exit` content. |