calendarIcon関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Draws the flip calendar page alone: this theme and what it needs, nothing of the other themes.
インポート
import { calendarIcon } from "@johnmorrisdotca/koyomi-calendars/themes/flip";
定義
function calendarIcon(options: Omit<CalendarIconOptions, "theme"> & { theme?: undefined; }): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
options | Omit<CalendarIconOptions, "theme"> & { theme?: undefined; } | What the main |
戻り値
string
The icon as SVG text, <svg …>…</svg>.
例
import { calendarIcon } from "@johnmorrisdotca/koyomi-calendars/themes/flip";
const svg = calendarIcon({ month: 11, day: 3, year: 2026, scheme: "dark" });
console.log(svg.startsWith("<svg"));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。