@tech-friday/react-ui
TypeScript icon, indicating that this package has built-in type declarations

0.0.13 • Public • Published

react-ui

PET Project

Figma Reference

UI Kit

Tech stack

  • React
  • Storybook
  • Styled-component
  • Type Script

Base Example

import { ReactEventHandler, ChangeEventHandler, useState } from 'react'
import { Button, TextInput } from '@tech-friday/react-ui'

const App = (): JSX.Element => {
    const [text, setText] = useState<string>('')

    const onClickHandler: ReactEventHandler = (e) => {
        console.log(text)
    }

    const onChangeHandler: ChangeEventHandler<HTMLInputElement> = (e) => {
        setText(e.target.value)
    }

    return (
        <form onSubmit={() => console.log(text)}>
            <TextInput onChange={onChangeHandler} placeholder="Enter your text" />

            <Button 
                label="Push me"
                onClick={onClickHandler}
                type="button"
            />
        </form>
    )
}

List implemented components from design

  • Button
  • Loader
  • TextInput
  • NumberInput
  • PasswordInput

Package Sidebar

Install

npm i @tech-friday/react-ui

Weekly Downloads

1

Version

0.0.13

License

ISC

Unpacked Size

286 kB

Total Files

119

Last publish

Collaborators

  • tech-friday