Preview Updated 2026-05-10

OnboardingFlow

Onboarding flow shell with First-Run Wizard / Hotspot Tour / Full Flow tabs.

Basic usage

Three predefined tabs (ids: wizard, hotspot, flow); the consumer fills each tab via a named slot #panel-{tabId} (Vue) / slots["panel-{tabId}"] (React). The default list can also be overridden with the tabs prop.

Source: onboarding.html.

Demo source
src/App.vue vue
<CfOnboardingFlow>
<template #panel-wizard>...</template>
<template #panel-hotspot>...</template>
</CfOnboardingFlow>
src/App.tsx tsx
<CfOnboardingFlow slots={{
'panel-wizard': <PanelA />,
'panel-hotspot': <PanelB />,
}} />

API

PropTypeDefaultDescription
modelValue / valuestringFirst tab idActive tab
tabsTemplatePaneTab[]presetCustom tab list
size'sm' | 'md' | 'lg''md'

The preset tab-id lists are exported as constants PROTOCOL_TABS / NETWORK_TABS / SQL_TABS etc., and can be reused directly in custom tabs.

Template components are essentially semantic shells over CfTabs. If you don’t need a predefined tab set, use CfTabs directly.

反馈与讨论

OnboardingFlow · Discussion

0
0 / 600
一键发送
正在加载评论...