All Projects → lukehorvat → React Osx Dock

lukehorvat / React Osx Dock

Licence: mit
React component that is magnifiable like the Mac OS X dock.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Osx Dock

Dzhtmltext
Delphi and Lazarus HTML Label component
Stars: ✭ 60 (-55.88%)
Mutual labels:  osx, component
Redux Tooltip
A tooltip React component for Redux.
Stars: ✭ 134 (-1.47%)
Mutual labels:  component
Vue Blu
UI Component Library Base on Vue.js(2.x) and Bulma
Stars: ✭ 1,593 (+1071.32%)
Mutual labels:  component
React Dplayer
react-dplayer
Stars: ✭ 130 (-4.41%)
Mutual labels:  component
React Splitters
React splitter component, written in TypeScript.
Stars: ✭ 127 (-6.62%)
Mutual labels:  component
Autoresponsive Vue
Auto responsive grid layout library for Vue.
Stars: ✭ 132 (-2.94%)
Mutual labels:  component
React Modal Box
React Modal Box, is a simple dependency free and customizable React Component to display Modals on your application. Its simple event system allows you to place the modal in the root component of your application, and calling it with the simple mixins, allows you to be flexible. It also includes event handling mixins, so you can detect when the modal is being called or being hidden.
Stars: ✭ 126 (-7.35%)
Mutual labels:  component
Osx Kvm
Run macOS on QEMU/KVM. With OpenCore + Big Sur + Monterey support now! Only commercial (paid) support is available now to avoid spammy issues. No Mac system is required.
Stars: ✭ 12,926 (+9404.41%)
Mutual labels:  osx
Maclaunch
Manage your macOS startup items.
Stars: ✭ 133 (-2.21%)
Mutual labels:  osx
React Native Circular Menu
A Ripple menu effect for your react native application
Stars: ✭ 129 (-5.15%)
Mutual labels:  component
Vscode of
openFrameworks empty example for visual studio code
Stars: ✭ 129 (-5.15%)
Mutual labels:  osx
Error Message
📋 Error message component
Stars: ✭ 129 (-5.15%)
Mutual labels:  component
Evilosx
An evil RAT (Remote Administration Tool) for macOS / OS X.
Stars: ✭ 1,826 (+1242.65%)
Mutual labels:  osx
Vue Loaders
Vue + loaders.css
Stars: ✭ 127 (-6.62%)
Mutual labels:  component
Aura.filter
Validate and sanitize arrays and objects.
Stars: ✭ 134 (-1.47%)
Mutual labels:  component
Property Info
PropertyInfo extracts information about PHP class' properties using metadata of popular sources.
Stars: ✭ 1,747 (+1184.56%)
Mutual labels:  component
Vue Slide Bar
🎢 A Simple Vue Slider Bar Component.
Stars: ✭ 129 (-5.15%)
Mutual labels:  component
Toggle Switch React Native
Toggle Switch React Native Component works on both iOS and Android
Stars: ✭ 131 (-3.68%)
Mutual labels:  component
Zarm Web
基于 React 的桌面端UI组件库
Stars: ✭ 135 (-0.74%)
Mutual labels:  component
Tagger
Zero Dependency, Vanilla JavaScript Tag Editor
Stars: ✭ 135 (-0.74%)
Mutual labels:  component

react-osx-dock NPM version

React component that is magnifiable like the Mac OS X dock.

Works in any Web browser that supports CSS grid and flexbox layout.

View a demo here.

Installation

Install the package with NPM:

$ npm install react-osx-dock

Usage

Example:

import Dock from "react-osx-dock";

<Dock width={800} magnification={2} magnifyDirection="up">
  {["a", "b", "c", "d", "e"].map((item, index) => (
    <Dock.Item key={index} onClick={() => console.log(item)}>
      <img src={`${item}.png`} />
    </Dock.Item>
  ))}
</Dock>

API

Dock

React component that accepts Dock.Items as children, and the following props:

Name Description Type Required
width The width of the dock in pixels. number yes
magnification The level of dock magnification produced on mouse-over. number yes
magnifyDirection The vertical direction that dock items grow when magnified. string enum

("up", "down", "center")
yes
className The dock's CSS class. string no

default: undefined
backgroundClassName The dock background's CSS class. string no

default: undefined
debug Whether to render dock sub-component bounding boxes or not. Useful for debugging! boolean no

default: false

Dock.Item

React component that accepts any HTML/React elements as children, and the following props:

Name Description Type Required
className The dock item's CSS class. string no

default: undefined
onClick The dock item's mouse click event handler. function no

default: undefined

Contributing

Pull requests are most welcome. Clone this repository and run npm test to test/debug your code changes.

Credits

The demo website uses a couple of free icon packs from FlatIcon:

Thanks!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].