Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Material Ui | 87,096 | 14,756 | 8,385 | 10 hours ago | 162 | April 03, 2022 | 1,494 | mit | TypeScript | |
MUI Core: Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design. | ||||||||||
Awesome React Components | 35,639 | a month ago | 2 | cc0-1.0 | ||||||
Curated List of React Components & Libraries. | ||||||||||
Chakra Ui | 32,985 | 476 | 20 hours ago | 453 | September 22, 2022 | 129 | mit | TypeScript | ||
⚡️ Simple, Modular & Accessible UI Components for your React Applications | ||||||||||
React Virtualized | 24,863 | 2,728 | 1,605 | 2 months ago | 294 | December 18, 2020 | 501 | mit | JavaScript | |
React components for efficiently rendering large lists and tabular data | ||||||||||
React Bootstrap | 21,737 | 29,421 | 3,983 | a day ago | 199 | August 25, 2022 | 170 | mit | TypeScript | |
Bootstrap components built with React | ||||||||||
React Native Web | 20,772 | 3,237 | 1,342 | 5 days ago | 335 | August 30, 2022 | 78 | mit | JavaScript | |
Cross-platform React UI packages | ||||||||||
Enzyme | 19,983 | 51,435 | 26,241 | 3 months ago | 54 | December 20, 2019 | 292 | mit | JavaScript | |
JavaScript Testing utilities for React | ||||||||||
React Testing Library | 17,843 | 2,707 | 18,285 | 8 days ago | 91 | May 28, 2022 | 27 | mit | JavaScript | |
🐐 Simple and complete React DOM testing utilities that encourage good testing practices. | ||||||||||
Bit | 16,698 | 64 | 10 hours ago | 819 | September 24, 2022 | 146 | other | TypeScript | ||
A tool for composable software development. | ||||||||||
Fluentui | 15,737 | 658 | 408 | 10 hours ago | 1,487 | September 23, 2022 | 740 | other | TypeScript | |
Fluent UI web represents a collection of utilities, React components, and web components for building web applications. |
universal-tilt.js implementation for React component
Live check the website
Playground play with the library in Storybook
First, install the library in your project by npm:
$ npm install react-universal-tilt
Or Yarn:
$ yarn add react-universal-tilt
** Import plugin in the React application file:**
import ReactTilt from 'react-universal-tilt';
** Later, create a parallax component and pass options:**
<ReactTilt
settings={/* settings */}
callbacks={/* callbacks */}
onTiltChange={/* event output destination */}
className={/* class name(s) */}
// other props for div tag e.g. style
/>
You can add components with or without additional content:
with:
<ReactTilt /* options */>
{/* additional content */}
</ReactTilt>
without:
<ReactTilt /* options */ />
Name | Type | Default | Description | Available options |
---|---|---|---|---|
settings | object | {} |
Default universal-tilt.js settings | universal-tilt.js settings |
callbacks | object | {} |
Default universal-tilt.js callbacks | universal-tilt.js settings |
className | string | tilt |
Tilt element class name | Name of the tilt element |
onTiltChange
event callback will output the x, y & angle of tilting
import React from 'react';
import ReactTilt from 'react-universal-tilt';
/* ------ First Example ------ */
export const FirstExample = () => {
return (
<ReactTilt
settings={{
base: 'window',
reverse: true,
}}
style={{
border: '1px solid #333',
}}
className="tilt-elem my-tilt"
/>
);
};
/* ------ Second Example ------ */
function myFunc(el) {
el.style.backgroundColor = '#f00';
}
export const SecondExample = () => {
const handleTiltChange = (e) => {
console.log(e.tiltX, e.tiltY, e.angle);
};
const style = {
border: '1px solid #333',
};
return (
<ReactTilt
settings={{
speed: 500,
scale: 1.3,
}}
callbacks={{
onMouseMove: (el) => myFunc(el),
}}
style={style}
className="tilt-elem my-tilt"
onTiltChange={handleTiltChange}
>
<h3>Hello World!</h3>
</ReactTilt>
);
};
This project is licensed under the MIT License 2018-present Jakub Biesiada