A powerful React-based touring library that provides essential tools for creating interactive, guided tours, popovers, and utilities to enhance user experiences on web applications.
A powerful React-based touring library that provides essential tools for creating interactive, guided tours, popovers, and utilities to enhance user experiences on web applications.
- Touring Components: Create guided tours for web applications with customizable steps.
- Popover Management: Simple popovers with easy-to-use APIs.
- Masking & Highlighting: Highlight key UI elements during onboarding.
- Utility Functions: Essential helper utilities for smooth UI interactions.
- TypeScript Support: Fully typed for better developer experience.
- Highly Customizable: Offers flexibility with styling and behavior modifications.
To install the package via npm or yarn:
npm install @react-explore-kit/tour
# or
yarn add @react-explore-kit/tour
import { Tour } from '@react-explore-kit/tour';
const steps = [
{ selector: '#step1', content: 'This is the first step' },
{ selector: '#step2', content: 'This is the second step' }
];
export default function App() {
return <Tour steps={steps} />;
}
import { Popover } from '@react-explore-kit/popover';
<Popover content="Hello, World!">
<button>Hover me</button>
</Popover>;
import { Mask } from '@react-explore-kit/mask';
<Mask selector="#important-section" />;
Prop | Type | Description |
---|---|---|
steps |
Array |
List of steps in the tour |
onFinish |
Function |
Callback when tour completes |
Prop | Type | Description |
---|---|---|
content |
string |
Text to display in popover |
Prop | Type | Description |
---|---|---|
selector |
string |
CSS selector of element to mask |
This library provides flexibility in customization:
<Tour
steps={steps}
theme={{
arrowColor: 'red',
backgroundColor: 'black',
textColor: 'white'
}}
/>
git clone https://github.com/react-explore-kit/ReactExploreKit.git
cd ReactExploreKit
npm install
npm start
We welcome contributions! If you'd like to improve this library, follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License.