1.0.1-beta.10 • Published 9 months ago
@hudoro/date v1.0.1-beta.10
Hudoro date
Hudoro date is a strict and customizable date component for web development projects, designed for simplicity and adherence to strict design guidelines.
Screenshots
Package instalation
Instal package using pnpm
pnpm add @hudoro/date
Instal package using yarn
yarn add @hudoro/date
Instal package using npm
npm i @hudoro/date
Usage/Examples
import React from "react";
import {HudoroDate, IDateRange} from "@hudoro/date";
import ReactDOM from "react-dom/client";
import {useState} from "react";
const App = () => {
// NOTE! IF YOU WANT TO USE ONLY DATE ,THEN JUST PAST DATE,IN EXAMPLE BELLOW IS dateDays, BUT IF U WANT TO USE DATE RANGE THEN YOU SHOULD PAS DATE RANGE, IN EXAMPLE BLLEO IS dateRange OR PERHAPS YOU WILL GET ERROR,PLEASE FOLLOW THE INSTRUCTURE BELLOW
const [dateDays, setDateDays] = (useState < IDateRange) | (Date > new Date());
const [dateRange, setDateRange] =
(useState < IDateRange) |
(Date >
{
from: new Date(),
to: new Date(),
});
return (
<div
style={{
maxWidth: "300px",
margin: "100px auto",
}}
>
// DATE RANGE EXAMPLE
<HudoroDate
value={dateRange}
onChange={(e: IDateRange) => setDateRange(e)}
filter="days"
rangedDate
/>
// DATE
<HudoroDate
value={dateDays}
onChange={(e: DATE) => setDateRange(e)}
filter="days"
/>
</div>
);
};
Props
Props that you can pass to <ToastContainer {...props} />
Prop Name | Value | required |
---|---|---|
value | Date | true |
onChange | (props: any) => void | true |
filter | 'days', 'months', 'years' | true |
input | boolean | false |
rangedDate | boolean | false |
1.0.1-beta.2
1 year ago
1.0.1-beta.1
1 year ago
1.0.0-beta.3
1 year ago
1.0.0-beta.4
1 year ago
1.0.0-beta.5
1 year ago
1.0.1-beta.6
1 year ago
1.0.1-beta.5
1 year ago
1.0.1-beta.4
1 year ago
1.0.1-beta.3
1 year ago
1.0.0-beta.11
1 year ago
1.0.1-beta.9
9 months ago
1.0.1-beta.8
10 months ago
1.0.1-beta.7
11 months ago
1.0.0-beta.10
1 year ago
1.0.1-beta.10
9 months ago
1.0.0-beta.6
1 year ago
1.0.0-beta.7
1 year ago
1.0.0-beta.8
1 year ago
1.0.0-beta.9
1 year ago
1.0.0-beta.2
1 year ago
1.0.0-beta.1
1 year ago
0.1.0-beta.2
1 year ago
0.1.0-beta.1
1 year ago
0.1.0-beta.0
1 year ago
0.0.1-beta.5
1 year ago
0.0.1-beta.4
1 year ago
0.0.1-beta.3
1 year ago
0.0.1-beta.2
1 year ago