Coachmark
Coachmark is a flexible, accessible overlay component for onboarding, feature tours, and contextual help. It supports custom content, actions, and media.@coinbase/cds-web@8.30.1
ImportSourceView source codeStorybookView Storybook
import { Coachmark } from '@coinbase/cds-web/coachmark/Coachmark'
Related components
Basic usage
Loading...
Live Code() => { const [open, setOpen] = useState(true); if (!open) return <Button onClick={() => setOpen(true)}>Show Coachmark</Button>; return ( <Coachmark title="Welcome!" content="This is a Coachmark. Use it to guide users." action={ <Button compact onClick={() => setOpen(false)}> Got it </Button> } onClose={() => setOpen(false)} /> ); };
With Media
Loading...
Live Code() => { const [open, setOpen] = useState(true); if (!open) return <Button onClick={() => setOpen(true)}>Show Coachmark</Button>; return ( <Coachmark title="Feature Highlight" content="You can add media to your Coachmark." media={<RemoteImage height={150} width="100%" source={ethBackground} alt="feature" />} action={ <Button compact onClick={() => setOpen(false)}> Next </Button> } onClose={() => setOpen(false)} /> ); };