snipe-streetz-sdk
v1.0.3
Published
Snipe Streetz SDK
Downloads
2
Readme
Snipe Streetz SDK - Diwali Modal
The Snipe Streetz SDK provides a Diwali modal component that you can easily integrate into your React applications. This modal is designed for Diwali-themed content or promotions and offers a customizable and user-friendly experience.
Installation
You can install the Snipe Streetz SDK Diwali Modal using npm or yarn:
npm install snipe-streetz-sdk
npm install [email protected]
or
yarn add snipe-streetz-sdk
yarn add [email protected]
Usage
To use the Diwali Modal in your application, import it as shown below:
import SnipeSdk from "snipe-streetz-sdk";
You can then use the Modal
component with the following props:
visible
: A boolean that controls the visibility of the modal.onClick
: A function to be executed when the modal is clicked. You can handle any custom actions in this function.onOverlayPress
: A function to be executed when the overlay outside the modal is clicked. This can be used to close the modal or trigger other actions.
Here's an example of how to use the Modal
component in your application:
import React, { useState } from "react";
import SnipeSdk from "snipe-streetz-sdk";
function App() {
const [showModal, setShowModal] = useState(false);
return (
<div>
<button onClick={() => setShowModal(true)}>
Show Diwali Modal
</button>
<SnipeSdk
visible={showModal}
onClick={() => {
setShowModal(false);
console.log("Modal Clicked");
}}
onOverlayPress={() => {
setShowModal(false);
console.log("Overlay Clicked");
}}
/>
</div>
);
}
export default App;
License
This SDK and Diwali Modal are provided under the MIT License.
Support
If you encounter any issues, have questions, or need assistance, please contact our support team at [email protected].
Thank you for using the Snipe Streetz SDK Diwali Modal! We wish you a happy and prosperous Diwali!