1.0.23 • Published 1 year ago

hotelblockstest v1.0.23

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

title: Web Component Library

This is a library of web components that can be easily consumed and used in web projects. It provides components for displaying hotel blocks and related functionality. The library supports both plain web usage and integration with React.

Table of Contents

Web Consumption

To consume the web components in a web project, follow these steps:

  1. Add the following HTML markup where you want to display the hotel blocks:
    <div id="hotelblocks-container"></div>
  2. Include the library's JavaScript file using the following script tag in your HTML file:
    <script src="https://www.unpkg.com/hotelblockstest@latest/dist/web/index.js"></script>
  3. Create an instance of the button component using the following JavaScript code:
    <script>
      var Button = HotelBlocksComponents.Render("hotelblocks-container");
    </script>

React Consumption

  1. Install the library using npm or yarn:
    npm install hotelblockstest
  2. Import the required components from the library in your React component file:
    import {
      ThemeProvider,
      Button,
      SearchCard,
    } from "hotelblockstest/dist/react";
  3. Wrap your React components with the ThemeProvider component to set the desired theme color:
    <ThemeProvider color="blue">
    <Button label="hello" />
    <SearchCard />
    </ThemeProvider>
1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago