1.3.2 โ€ข Published 11 months ago

kheiron-ui v1.3.2

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

Stable Release Downloads npm license

Static Badge

kheiron-ui is a UI component library with semantic HTML, optimized to accelerate user interface development in web applications. Designed with productivity and simplicity in mind, kheiron-ui offers a comprehensive solution for creating robust forms and tables without the need to invest time in complex configurations.

Install

npm install kheiron-ui

Quickstart

Forms and Modal

This example are using react-hook-form how complement

import {
  AtomDiv,
  ButtonKUI,
  InputFieldCheckboxKUI,
  InputFieldPasswordKUI,
  InputFieldTextKUI,
  ModalKUI,
} from 'kheiron-ui';

<ButtonKUI label="form" onClick={() => setOpen(true)} />
<ModalKUI open={open}>
  <form onSubmit={handleSubmit(onSubmit)} style={{ width: '200px' }}>
    <InputFieldTextKUI
      width="100%"
      label="Username"
      errorMessage={errors?.username?.message}
      {...register('username')}
    />
    <InputFieldPasswordKUI
      width="100%"
      label="Password"
      errorMessage={errors?.password?.message}
      {...register('password')}
    />
    <InputFieldCheckboxKUI
      errorMessage={errors?.terms?.message || ''}
      position="right"
      label="terms and conditions"
      {...register('terms')}
    />
    <ButtonKUI
      label="Cancel"
      variant="outlined"
      type="button"
      onClick={() => setOpen((old) => !old)}
    />
    <ButtonKUI label="Submit" type="submit" />
  </form>
</ModalKUI>;

Static Static

TableKUI

import { TableKUI, UserProfileCardKUI } from 'kheiron-ui';

<TableKUI
  keys={['id', 'user']}
  head={{ id: 'ID', user: 'User' }}
  body={[
    {
      id: 'KUI',
      user: {
        image: 'https://avatars.githubusercontent.com/u/158779561?s=48&v=4',
        name: 'Kheiron',
        email: 'kheiron-ui@example.com',
      },
    },
    ...
  ]}
  limit={5}
  neighbors={1}
  renderBody={({ value, key }) => {
    switch (key) {
      case 'user': {
        return (
          <UserProfileCardKUI
            image={value?.image || ''}
            head={value?.name || ''}
            body={value?.email || ''}
            onClick={(e) => {
              e.preventDefault();
              e.stopPropagation();
              alert(value?.name);
            }}
          />
        );
      }
      default: {
        return <>{String(value)}</>;
      }
    }
  }}
/>;

Static

Authors and Team

Static Badge Static Badge Static Badge Static Badge Static Badge Static Badge Static Badge Static Badge

  • Juan Marcos Mansilla Static Badge ___ Static Badge Static Badge Static Badge Static Badge Static Badge Static Badge Static Badge
  • Gina Paola Medina Static Badge ___ Static Badge Static Badge Static Badge
  • Gaston Jaurena Static Badge ___ Static Badge Static Badge Static Badge Static Badge
  • Alejandro Torres Static Badge ___ Static Badge Static Badge Static Badge Static Badge
  • Andres Rodriguez Static Badge ___ Static Badge Static Badge Static Badge
  • Brian Padilla Static Badge ___ Static Badge Static Badge Static Badge
1.3.2

11 months ago

1.3.1

11 months ago

1.2.8

11 months ago

1.2.7

12 months ago

1.2.6

12 months ago

1.2.5

12 months ago

1.2.4

12 months ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago