1.1.1 • Published 9 months ago

@qr-x/react v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

⌛

Installation

npm install @qr-x/react

Usage

You can also try QR-X in action here or follow the examples below.

Solid

import QRX from '@qr-x/react'

function App() {
  return <QRX data='https://qr-x.devtrice.dev' color='#0284c7' />
}

Gradient

Linear Gradient

import QRX from '@qr-x/react'

function App() {
  return <QRX data='https://qr-x.devtrice.dev' gradient={{ colors: ['#f97316', '#f59e0b', '#facc15'] }} />
}

Radial Gradient

import QRX from '@qr-x/react'

function App() {
  return <QRX data='https://qr-x.devtrice.dev' gradient={{ type: 'radial', colors: ['#f97316', '#f59e0b', '#facc15'] }} />
}

Fill Image

import QRX from '@qr-x/react'

function App() {
  return <QRX data='https://qr-x.devtrice.dev' fillImage='https://images.unsplash.com/photo-1682687218608-5e2522b04673' />
}

Brand

Brand Image

import QRX from '@qr-x/react'

function App() {
  return (
    <QRX
      data='https://qr-x.devtrice.dev'
      brand={{
        src: 'https://images.unsplash.com/photo-1682687218608-5e2522b04673',
        style: { width: '4rem', height: '4rem' },
      }}
    />
  )
}

Brand Component

import QRX from '@qr-x/react'

function App() {
  return (
    <QRX
      data='https://qr-x.devtrice.dev'
      brand={
        <video
          src='https://videos.pexels.com/video-files/8333185/8333185-hd_1080_1080_30fps.mp4'
          style={{ width: '2.5rem', height: '2.5rem', border: '2px solid white', borderRadius: '50%' }}
          muted
          autoPlay
        />
      }
    />
  )
}

Props

NameTypeDefault
datastring
level'L' \| 'M' \|'Q' \| 'H''L'
shapes.body'square' \| 'circle' \| 'leaf' \| 'rounded''square'
shapes.eyeball'square' \| 'circle' \| 'leaf' \| 'rounded''square'
shapes.eyeframe'square' \| 'circle' \| 'leaf' \| 'rounded''square'
gradient.type'linear' \| 'radial'
gradients.colorsstring[] \| {value: string, stop: number}
gradients.rotatenumber (This property only exist if gradient.type is 'radial')45
fillImagestring
brandComponentProps<'img'> | ReactNode
1.0.1

12 months ago

1.0.0

12 months ago

1.1.0-alpha.b0dc353

12 months ago

1.0.0-alpha.da1fe90

12 months ago

1.0.0-alpha.fd5a14d

12 months ago

0.0.4-alpha.3f4f786

12 months ago

0.0.3-alpha.6cd3e7d

12 months ago

1.1.0-alpha.339a5f3

12 months ago

0.0.4-alpha.29ddbd1

12 months ago

0.0.4-alpha.b9f7822

12 months ago

1.1.0-alpha.d375cca

11 months ago

1.1.0-alpha.6b1aab7

11 months ago

0.0.4-alpha.b2be7e5

12 months ago

1.1.0-alpha.3b4aea4

11 months ago

1.0.0-alpha.cbad8cf

12 months ago

1.1.1-alpha.3bf1f40

11 months ago

1.0.0-alpha.89859b4

12 months ago

1.1.0-alpha.50d65a5

12 months ago

1.0.0-alpha.1525b85

12 months ago

1.1.0-alpha.2c2b357

12 months ago

1.1.0-alpha.afceb10

12 months ago

1.0.0-alpha.36c7514

12 months ago

0.0.4-alpha.958d1b6

12 months ago

1.0.0-alpha.3a457eb

12 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.1.0-alpha.b0434d4

11 months ago

1.1.0-alpha.0f3c26e

11 months ago

0.0.4-alpha.a7defc1

12 months ago

0.0.4-alpha.bf97edf

12 months ago

1.1.0-alpha.b089b8f

11 months ago

0.0.4-alpha.32c6f74

12 months ago

1.0.0-alpha.2fa3092

12 months ago

1.0.0-alpha.53e66a8

12 months ago

0.0.4-alpha.ed34d6d

12 months ago

0.0.5-alpha.5d27e34

12 months ago

1.1.0-alpha.9482723

11 months ago

1.1.0-alpha.a503e67

11 months ago

0.0.4-alpha.e8e6920

12 months ago

0.0.4-alpha.c403675

12 months ago

1.1.0-alpha.5ed619b

11 months ago

1.1.0-alpha.e241f31

12 months ago

1.1.0-alpha.f76d116

11 months ago

0.0.4-alpha.2bd434c

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.4-alpha.28961ee

12 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

2 years ago