@deyvis17gy/atom-img
TypeScript icon, indicating that this package has built-in type declarations

1.0.35 • Public • Published

@deyvis17gy/atom-img

image preloading for slow or large connections

NPM JavaScript Style Guide

Install

npm install --save @deyvis17gy/atom-img
yarn install @deyvis17gy/atom-img

Live Demo: Storybook

Usage

import React from 'react';

import { Picture } from '@deyvis17gy/atom-img';
import '@deyvis17gy/atom-img/dist/index.css';

const App = () => {
  return (
    <Picture
      className='picture'
      alt='image'
      url='example.png'
      loaderUrl='loaderExample.png'
      isBorderRadius={true}
      isLazy={true}
      onClick={() => console.log('click')}
    />
  );
};

License

MIT © Deyvis17GY

Package Sidebar

Install

npm i @deyvis17gy/atom-img

Weekly Downloads

0

Version

1.0.35

License

MIT

Unpacked Size

24.4 kB

Total Files

12

Last publish

Collaborators

  • deyvis17