smithery.ai

format-ui-display

UI表示用の日付、enum値をフォーマットします。日本語形式の日付、相対日付が?

First seen Apr 5, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,551 B
  • docs SUMMARY.md 166 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

UI表示フォーマットスキル

データを適切な形式でUI表示するためのスキルです。日付フォーマットとenumラベル変換を提供します。

いつ使うか

このスキルは以下の場合に使用してください:

  • テーブル・詳細画面で日付を表示する
  • 相対的な日付表示(「5分前」「3日前」など)を実装する
  • enum値(権限、ステータス、カテゴリ)を日本語ラベルに変換する
  • Badge やその他のUIコンポーネントでラベル表示する

クイックスタート

日付フォーマット

import { formatDate } from '@repo/utils/format-date'

// 一覧画面
export function UsersTable({ users }: { users: User[] }) {
  return (
    <TableRow>
      <TableCell>{formatDate(user.createdAt, 'YYYY年M月D日')}</TableCell>
    </TableRow>
  )
}

// 詳細画面
export function UserDetail({ user }: { user: User }) {
  return (
    <div>
      <Label>作成日</Label>
      <p>{formatDate(user.createdAt, 'YYYY年M月D日 HH:mm')}</p>
    </div>
  )
}

詳細パターン

詳細な実装パターンについては references を参照してください:

  • [date-formatting.md](references/date-formatting.md) - 日付フォーマットの詳細オプション、相対表示、カスタムフォーマット