2.0.2 • Published 6 months ago

sentinal-ui v2.0.2

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

Sentinal UI

A reusable UI component library with TypeScript and Tailwind CSS.

Installation

npm install sentinal-ui

Usage

import React from "react";
import { InputBox } from "sentinal-ui";
import "sentinal-ui/dist/styles.css"; // Import the styles

// Inside your Formik form
<InputBox
  label="Email"
  name="email"
  placeholder="Enter your email"
  type="email"
/>;

Components

InputBox

A styled input box component that integrates with Formik.

Props

  • label: The label for the input field
  • name: The name of the input field (used by Formik)
  • placeholder: The placeholder text
  • className: Additional classes for the container (optional)
  • type: Input type (default: "text")
  • labelColor: Color class for the label (default: "text-white")
  • inputClasses: Additional classes for the input element (optional)

Development

  1. Clone the repository
  2. Install dependencies: npm install
  3. Build the library: npm run build
  4. Watch for changes: npm run build:watch

License

MIT

2.0.2

6 months ago

2.0.1

6 months ago

2.0.0

6 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.8

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.0

1 year ago