0.0.32 • Published 1 year ago

react-skel-wrapper v0.0.32

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-skel-wrapper

A React component library for easily creating skeleton loaders to enhance user experience during content loading times. The react-skel-wrapper package allows developers to implement skeleton screens in their React applications, providing a smooth and engaging user experience while the content is being loaded.

Features

  • Easy Integration: Seamlessly integrates with your React application.
  • TypeScript Support: Comes with TypeScript typings for better development experience.
  • Customizable: Easily customize the size, shape, and animation of your skeleton loaders.
  • Repeat Component: Utilize the Repeat component to replicate skeleton loaders, reducing boilerplate code.

Installation

You can install react-skel-wrapper using npm or yarn:

npm install react-skel-wrapper

or

yarn add react-skel-wrapper

Usage

Here is a simple example of how to use react-skel-wrapper in your React application:

import React, { useEffect, useState } from "react";
import SkelWrapper, { Repeat } from "react-skel-wrapper";

function App() {
  const [loading, setLoading] = useState < boolean > true;

  useEffect(() => {
    setTimeout(() => setLoading(false), 3000);
  }, []);

  return (
    <>
      <Repeat amount={2} loading={loading}>
        <SkelWrapper width={300} height={100} uprise loading={loading}>
          <p style={{ fontSize: 40 }}>Hello world.</p>
        </SkelWrapper>
        <SkelWrapper height={20} uprise loading={loading}>
          <p>2024.02.20</p>
        </SkelWrapper>
        <SkelWrapper uprise loading={loading}>
          <p>handle, carmerce</p>
        </SkelWrapper>
      </Repeat>
    </>
  );
}

export default App;

Example Result

Example Skeleton Loader

TypeScript Support

react-skel-wrapper fully supports usage in a TypeScript environment. All necessary type definitions are included, allowing for easy integration into TypeScript projects.

Contributing

Interested in contributing to the react-skel-wrapper project? Visit our GitHub page to learn more about how you can contribute.

License

react-skel-wrapper is distributed under the MIT License. For more details, refer to the LICENSE file in the project.

Author

Handle Corp, Jaeyeon Kim jykim@carmerce.co.kr

0.0.32-dev.3

1 year ago

0.0.32-dev.2

1 year ago

0.0.32-dev.1

1 year ago

0.0.32

1 year ago

0.0.31

1 year ago

0.0.30

1 year ago

0.0.29

1 year ago

0.0.28

1 year ago

0.0.27

1 year ago

0.0.26

1 year ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago