1.0.29 • Published 8 months ago

alt_basic-modal v1.0.29

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

alt_basic-modal

alt_basic-modal is a simple, lightweight modal library for React applications. It is designed to be easy to use and highly customizable.

Installation

You can install alt_basic-modal using npm:

npm install alt_basic-modal

Usage

To use alt_basic-modal in your React application, you can import it and use it as a component.

import Modal from "alt_basic-modal";

// In your component
<Modal isOpen={this.state.isModalOpen} onClose={this.closeModal}>
  <h1>Your Content Here</h1>
</Modal>;

Customizing styles

alt_basic-modal uses styled-components for styling, which allows you to easily customize the styles of the modal components.

The modal consists of three main styled components: ModalWrapper, ModalContent, and CloseButton. You can extend these components to customize their styles.

Here's an example of how you can extend the ModalWrapper to change its background color:

const CustomModalWrapper = styled(ModalContent)`
  background-color: #yourColor;
`;

// Then use CustomModalWrapper in your component

Similarly, you can extend ModalWrapper and CloseButton to customize their styles.

Dependencies

alt_basic-modal has the following dependencies:

React: Facebook open-source Javascript library.

Styled-components: A library that allows you to write CSS in JS while building custom components in React.

Vite: Vite is a frontend tool that is used for building fast and optimized web applications.

Please ensure these dependencies are installed in your project.

Contributing

Contributions are welcome. Please submit a pull request with any enhancements.

License

alt_basic-modal is licensed under the ISC license.

1.0.29

8 months ago

1.0.28

8 months ago

1.0.27

8 months ago

1.0.26

8 months ago

1.0.25

8 months ago

1.0.24

8 months ago

1.0.23

8 months ago

1.0.22

8 months ago

1.0.21

8 months ago

1.0.20

8 months ago

1.0.19

8 months ago

1.0.18

8 months ago

1.0.17

8 months ago

1.0.15

8 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago