calendarIconfunction
Draws the frame calendar page alone: this theme and what it needs, nothing of the other themes.
Import it
import { calendarIcon } from "@johnmorrisdotca/koyomi-calendars/themes/frame";
Definition
function calendarIcon(options: Omit<CalendarIconOptions, "theme"> & { theme?: undefined; }): string
Parameters
| Name | Type | Description |
|---|---|---|
options | Omit<CalendarIconOptions, "theme"> & { theme?: undefined; } | What the main |
Returns
string
The icon as SVG text, <svg …>…</svg>.
Examples
import { calendarIcon } from "@johnmorrisdotca/koyomi-calendars/themes/frame";
const svg = calendarIcon({ month: 11, day: 3, year: 2026, scheme: "dark" });
console.log(svg.startsWith("<svg"));trueWhat it prints (run when this page was built)