New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

padix

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

padix

A coordinate driven input component for react that supports keyboard events

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
0
Created
Source

padix 🕹️

License: MIT

A coordinate driven input component for react that supports keyboard events

Install

# pnpm (recommended)
pnpm install padix

# npm 
npm install padix

# yarn
yarn install padix

Usage

import * as Padix from 'padix'

export function Example () {
  /* Coordinates will always be a normalized value between 0 and 1 */
  const [coordinates, setCoordinates] = useState({ x: 0.5, y: 0.5 })

  return (
    <Padix.Root 
      value={coordinates} 
      onChange={setCoordinates} 
      style={{
        width: 300,
        height: 300
      }}
    >
      {/* Describe labels */}
      <Padix.Label position={'top'}>{'Top Label'}</Padix.Label>
      
      {/* Apply custom class names or styles to the thumb element */}
      <Padix.Thumb style={{ backgroundColor: 'rebeccapurple' }} />
    </Padix.Root>
  )
}

Keywords

react

FAQs

Package last updated on 10 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts