Skip to content

Vizel API / core/src / vizelDefaultFeatures

Function: vizelDefaultFeatures()

ts
function vizelDefaultFeatures(): VizelFeatureOptions;

Defined in: packages/core/src/utils/default-features.ts:21

Curated VizelFeatureOptions value that enables every opt-in feature Vizel ships with reasonable defaults. Use this when you want the full Notion-like surface without enumerating each toggle yourself.

Features that require consumer-supplied configuration to be useful (interaction.mention, collaboration.provider, collaboration.comments, collaboration.presence, collaboration.versionHistory) are deliberately NOT enabled here — turning them on without their dependencies would throw at editor-construction time.

Returns

VizelFeatureOptions

Example

ts
const editor = useVizelEditor({
  features: vizelDefaultFeatures(),
});

Released under the MIT License.