sm-imgtextcmp
v1.0.2
Published
This is the package for image-text component.
Downloads
2
Readme
sm-imgtextcmp
This is a versatile React component for creating image-text combinations with customizable animations, suitable for various web applications.
Installation
To install sm-imgtextcmp
, use npm or yarn:
npm install sm-imgtextcmp
# or
yarn add sm-imgtextcmp
Usage
import React from "react";
import Imgtextcmp from "sm-imgtextcmp";
import jsonData from "./path_to_your_json_data.json";
import img from "./path_to_your_image.jpg";
const MyComponent = () => {
return (
<Imgtextcmp jsondata={jsonData} img={img} />
);
}
export default MyComponent;
Props
jsondata
: JSON object containing the configuration for the image-text component.img
: Path to the image to be displayed.
Example JSON Data
{
"id": "exampleId",
"imageDirection": "right",
"imageWidth": "50%",
"imageHeight": "auto",
"backgroundColor": "bg-light",
"color": "text-dark",
"textHeading": "Your Heading",
"textBody": "Your body text goes here.",
"textButton": "Your Button Text",
"wow_animation_img": "fadeIn", // Example animation class
"wow_duration_img": "1s", // Example animation duration
"wow_delay_img": "0.5s", // Example animation delay
"wow_animation_text": "slideInUp", // Example animation class
"wow_duration_text": "1s", // Example animation duration
"wow_delay_text": "0.5s" // Example animation delay
}
License
This project is licensed under the ISC License. See the LICENSE file below :
ISC License
Copyright (c) 2024, Shivam Makwana
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.