web / useFullWidthToggleForContent
Function: useFullWidthToggleForContent() ​
useFullWidthToggleForContent<
Type>(content,defaultValue):UseFullWidthToggleReturn
Defined in: apps/web/app/composables/useFullWidthToggle/useFullWidthToggle.ts:12
Composable to manage the full-width toggle state for blocks with a direct layout property.
Type Parameters ​
Type ​
Type extends object
Parameters ​
content ​
Ref<Type>
A Ref to any object that may have a layout property at the root.
defaultValue ​
boolean = false
The default value to use if fullWidth is undefined (default: false).
Returns ​
UseFullWidthToggleReturn
An object with a reactive isFullWidth property for two-way binding.