Tarikh

React Components

Optional React entry point for SSR-safe date output.

React Components

The React entry point is optional. Import from @coreify/tarikh/react only when you need components.

import { Tarikh } from "@coreify/tarikh/react";

<Tarikh value={new Date()} />
<Tarikh.Relative value={new Date()} />
<Tarikh.Bangla value={new Date()} locale="bn-BD" />

All components render semantic <time> elements with dateTime and aria-label attributes. They are SSR-safe, tree-shakeable, and have zero runtime dependencies beyond React.

What Intl.DateTimeFormat cannot do

If you are building for Bangladesh, existing libraries are not enough.

FeatureIntl@coreify/tarikh
Bangla calendar conversionNoYes
Bangla digits in datesPartialYes
Hybrid formattingNoYes
Bangla calendar parsingNoYes
Relative time in BanglaNoYes
SSR-safe React componentsN/AYes

On this page