Bangladesh
Bangla date
The revised Bangladesh calendar (1 Boishakh on 14 April), Bangla digits, lakh and crore.
2 examples Code and Figma for each
16 December 2026
১ পৌষ ১৪৩৩
শীত · Poush- formatBanglaDate(day, { weekday: true })
- বুধবার, ১ পৌষ ১৪৩৩
- formatBanglaDate(day, { script: "latin" })
- 1 Poush 1433
- toBongabdo(day).season
- শীত
- toBanglaDigits(2026)
- ২০২৬
- lakhCrore(12500000)
- 1.25 crore
- lakhCrore(320000, { script: "bn" })
- ৩.২ লাখ
bangla-date.tsx
"use client";
import { Badge, formatBanglaDate, lakhCrore, toBanglaDigits, toBongabdo } from "@waveinno/ui";
export default function BanglaDateDemo() {
// A fixed day, so the page reads the same everywhere.
const day = new Date(2026, 11, 16);
const b = toBongabdo(day);
const rows: [string, string][] = [
["formatBanglaDate(day, { weekday: true })", formatBanglaDate(day, { weekday: true })],
['formatBanglaDate(day, { script: "latin" })', formatBanglaDate(day, { script: "latin" })],
["toBongabdo(day).season", b.season],
["toBanglaDigits(2026)", toBanglaDigits(2026)],
["lakhCrore(12500000)", lakhCrore(12500000)],
['lakhCrore(320000, { script: "bn" })', lakhCrore(320000, { script: "bn" })],
];
return (
<div className="grid gap-5 lg:grid-cols-[260px_1fr]">
<div className="rounded-[18px] bg-[linear-gradient(140deg,var(--brand-1),var(--brand-2))] p-5 text-white">
<p className="text-[12.5px] text-white/75">16 December 2026</p>
<p className="disp mt-1 text-[30px] font-bold leading-9 text-white">{formatBanglaDate(day)}</p>
<Badge className="mt-3 bg-white/20 text-white" dot={false}>
{b.season} · {b.monthNameLatin}
</Badge>
</div>
<dl className="divide-y divide-border rounded-[16px] border border-border bg-raised">
{rows.map(([code, out]) => (
<div key={code} className="flex flex-wrap items-center justify-between gap-2 px-4 py-2.5">
<dt className="font-mono text-[12px] text-muted">{code}</dt>
<dd className="text-[14px] font-medium text-text">{out}</dd>
</div>
))}
</dl>
</div>
);
}Examples#
Each one on its own: copy its code into your app, or copy it to Figma and paste it on the canvas as layers.
Today in Bangla
The Bangla date, the season and the month, on a brand card.
16 December 2026
১ পৌষ ১৪৩৩
শীত · Poushbangla-date-card.tsx
"use client";
import { Badge, formatBanglaDate, toBongabdo } from "@waveinno/ui";
export default function BanglaDateCardExample() {
const day = new Date(2026, 11, 16);
const b = toBongabdo(day);
return (
<div className="w-64 rounded-[18px] bg-[linear-gradient(140deg,var(--brand-1),var(--brand-2))] p-5 text-white">
<p className="text-[12.5px] text-white/75">16 December 2026</p>
<p className="disp mt-1 text-[30px] font-bold leading-9 text-white">{formatBanglaDate(day)}</p>
<Badge className="mt-3 bg-white/20 text-white" dot={false}>
{b.season} · {b.monthNameLatin}
</Badge>
</div>
);
}In a sentence
Both calendars side by side, as on a Bangladeshi receipt.
Issued on 16 December 2026 (১ পৌষ ১৪৩৩) for ৩.২ লাখ টাকা.
bangla-date-inline.tsx
"use client";
import { formatBanglaDate, lakhCrore } from "@waveinno/ui";
export default function BanglaDateInlineExample() {
return (
<p className="text-[15px] text-body">
Issued on <span className="font-semibold text-text">16 December 2026</span> ({formatBanglaDate(new Date(2026, 11, 16))}) for{" "}
<span className="font-semibold text-text">{lakhCrore(320000, { script: "bn" })} টাকা</span>.
</p>
);
}Import#
Everything comes from the package root. The example above uses:
your-component.tsx
import { Badge, formatBanglaDate, lakhCrore, toBanglaDigits, toBongabdo } from "@waveinno/ui";Props#
Read from the source of this version, so they match the code exactly.
<Badge>
src/components/ui/badge.tsx| Prop | Type | Default | Description |
|---|---|---|---|
dot | boolean | true | |
variant | "soft" | "solid" | "outline" | "dot" | "gradient" | "live" | "soft" |
Also takes HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>.
Install#
If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.
$ npm install @waveinno/ui