Catalog npm
PACKAGE EXPLORERView in registry

@01works/react-ui

npm

Design System for Dashboard

reactui
Versions collected44
Direct dependencies22From release 0.0.0-241123.165246
Last observed20 Oct, 21:59 UTC

README

Current package documentation

@01works/react-ui

Design System for Dashboard

Getting Started

Installation

npm i @01works/react-ui
# or
pnpm add @01works/react-ui
# or
yarn add @01works/react-ui
# or
bun add @01works/react-ui

Components

Button

import { Button } from '@01works/react-ui'

export const Component = () => {
  const onClick = () => {
    console.log('click')
  }

  return (
    <>
      <Button onClick={onClick} color="black" size="small" shape="square">
        Button
      </Button>
    </>
  )
}

ToggleField

import { ToggleField } from '@01works/react-ui'

export const Component = () => {
  const [pressed, setPressed] = useState(false)

  return (
    <ToggleField
      label="ToggleField"
      labelBasis={120}
      pressed={pressed}
      onChange={setPressed}
    />
  )
}

TextField

import { TextField } from '@01works/react-ui'

export const Component = () => {
  return (
    <TextField
      label="TextField"
      labelBasis={120}
      placeholder="Placeholder"
      color="white"
      type="text"
    />
  )
}

TextAreaField

import { TextAreaField } from '@01works/react-ui'

export const Component = () => {
  return (
    <TextAreaField
      label="TextAreaField"
      labelBasis={120}
      placeholder="Placeholder"
      size="small"
      color="white"
    />
  )
}

SelectField

import { SelectField } from '@01works/react-ui'

export const Component = () => {
  return (
    <SelectField
      label="SelectField"
      labelBasis={120}
      placeholder="Placeholder"
      color="white"
      options={[
        { label: 'Option 1', value: 'option1' },
        { label: 'Option 2', value: 'option2' },
        { label: 'Option 3', value: 'option3' },
      ]}
    />
  )
}

ColorField

import { ColorField } from '@01works/react-ui'

export const Component = () => {
  return (
    <ColorField
      label="ColorField"
      color="white"
    />
  )
}

SliderField

import { SliderField } from '@01works/react-ui'

export const Component = () => {
  const [value, setValue] = useState([50])

  return (
    <SliderField
      label="SliderField"
      labelBasis={120}
      min={0}
      max={100}
      step={1}
      value={value}
      onValueChange={(value: number[]) => setValue(value)}
    />
  )
}

ImageField

import { ImageField } from '@01works/react-ui'

export const Component = () => {
  const [value, setValue] = useState<ImageFieldValue>(null)

  return (
    <ImageField
      label="ImageField"
      value={value}
      setValue={(value: ImageFieldValue) => setValue(value)}
    />
  )
}

Accordion

import { Accordion } from '@01works/react-ui'

export const Component = () => {
  return (
    <Accordion
      label="Accordion"
    >
      <div>Accordion</div>
    </Accordion>
  )
}

Dialog

import { Dialog } from '@01works/react-ui'

export const Component = () => {
  return (
    <Dialog
      trigger={<Button>Open Dialog</Button>}
      title="Dialog"
      description="Dialog"
      button={{
        cancel: 'Cancel',
        submit: 'Submit',
        onSubmit: () => console.log('submit'),
      }}
    >
      <div>Dialog</div>
    </Dialog>
  )
}

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 44

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.0-241123.165246Registry latest23 Nov 202422
0.0.0-241123.15491723 Nov 202422
0.0.0-241123.8491323 Nov 202422
0.0.0-241123.8440623 Nov 202422
0.0.0-241122.23131422 Nov 202422
0.0.0-241120.8495220 Nov 202422
0.0.0-241120.8114220 Nov 202422
0.0.0-241028.1304128 Oct 202421
0.0.0-241013.16083813 Oct 202421
0.0.0-241002.1509112 Oct 202421
0.0.0-241002.1447522 Oct 202421
0.0.0-241002.606192 Oct 202421
0.0.0-240920.8045020 Sept 202422
0.0.0-240920.7592520 Sept 202422
0.0.0-240919.12051719 Sept 202422
0.0.0-240919.12023719 Sept 202421
0.0.0-240919.11445919 Sept 202421
0.0.0-240919.8525819 Sept 202420
0.0.0-240919.8173619 Sept 202420
0.0.0-240919.7031419 Sept 202420

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:59 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:49028909ae4f32989bfb8ce3460b9dc54c2fc5e9fccd3309568c81aa36e18ddd