Basic Usages
Basic Usage
1. Prepare Your HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First Cue.js Tour</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@nani_samireddy/cue.js@latest/dist/cue.min.css">
<style>
/* Basic demo styling */
body { font-family: sans-serif; margin: 40px; }
.feature-box { border: 1px solid #ccc; padding: 20px; margin-top: 20px; border-radius: 8px; }
#start-tour-button {
padding: 10px 20px; background-color: #007bff; color: white;
border: none; border-radius: 5px; cursor: pointer; margin-top: 20px;
}
</style>
</head>
<body>
<h1>Welcome to My App!</h1>
<p>A simple application to showcase Cue.js tours.</p>
<div id="dashboard-widget" class="feature-box">
<h2>Your Dashboard Widget</h2>
<p>This is a key area displaying important information.</p>
</div>
<div id="settings-area" class="feature-box">
<h2>User Settings</h2>
<p>Manage your preferences and profile.</p>
</div>
<button id="start-tour-button">Start Guided Tour</button>
<script src="https://cdn.jsdelivr.net/npm/@nani_samireddy/cue.js@latest/dist/cue.min.js"></script>
<script src="app.js"></script> </body>
</html>2. Using Cue.js in Your Project
A. Vanilla JavaScript
B. React
3. Understanding the Core Properties
4. Live Demo: Try It Yourself!
What Happens Next?
Last updated