
anl331/goey-toast
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Sonnerを基にFramer Motionアニメーションを搭載した、とろけるようなモーフィングトーストコンポーネント
概要
- オーガニックブロブモーフアニメーション(ピル→ブロブ→ピル) - 5種類のトーストタイプ:デフォルト、成功、エラー、警告、情報 - →成功/エラーの切り替えを読み込む約束トースト - オプションで成功ラベルのモーフバックを使ったアクションボタン - 文字列とReactコンポーネントをサポートする説明ボディ - 表示時間とバウンス強度の調整可能 - カスタムの塗りつぶし色、境界色、境界幅 - classNames propによるCSSクラスオーバーライド - 6つの位置と自動水平ミラーリング右側の位置 - 中央位置で対称モーフアニメーション - ホバー停止:拡張トーストをホバーすると終了タイマーを停止 - ホバー再展開:折りたたんだ錠剤をホバーするとトーストが再展開 - プリディスミット崩壊アニメーション - gooeyToast.update() 経由の場所でのトースト更新 - タイプフィルターによる終了:gooeyToast。
概要(AI 翻訳)
ライブデモ&ドキュメンタリー
特徴
- 有機ブロブモーフアニメーション(錠剤→塊→錠剤)
- 5種類のトースト:デフォルト、成功、エラー、警告、情報
- 成功/エラー遷移の読み込み付きプロミストースト→
- 成功ラベル(モーフバック)オプション付きのアクションボタン
- 文字列およびReactコンポーネントをサポートする記述本体
- 表示時間と反射強度の調整可能
- カスタム塗りつぶし色、境界色、境界幅
- CSSクラスのオーバーライドは
classNamesプロップを介して行われます - 右側位置用の自動水平ミラーリングを備えた6つの位置
- 対称モーフアニメーション付きの中心位置
- ホバーポーズ:拡張トーストをホバーすると終了タイマーが一時停止されます
- ホバー再拡大:折りたたんだ錠剤をホバーするとトーストが再び広がります
- プリディスミッシュ崩壊アニメーション
- [[T1]によるインプレイストースト更新
- タイプフィルターによる無効化:
gooeyToast.dismiss({ type: 'error' }) - ダークモードおよびRTLレイアウトサポート
- アニメーションプリセット:滑らか、弾む、微妙、キビキビ
- 拡張トーストのタイムスタンプ表示(オプションの
showTimestamp)トグル付き - 設定可能な位置を持つ閉じボタン(
top-left/top-right) - ホバーポーズと再展開機能を備えたカウントダウン進行バー
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
gooey-toast
Features
- Organic blob morph animation (pill → blob → pill)
- Five toast types: default, success, error, warning, info
- Promise toasts with loading → success/error transitions
- Action buttons with optional success label morph-back
- Description body supporting strings and React components
- Configurable display duration and bounce intensity
- Custom fill color, border color, and border width
- CSS class overrides via
classNamesprop - 6 positions with automatic horizontal mirroring for right-side positions
- Center positions with symmetric morph animation
- Hover pause: hovering an expanded toast pauses the dismiss timer
- Hover re-expand: hovering a collapsed pill re-expands the toast
- Pre-dismiss collapse animation
- In-place toast updates via
gooeyToast.update() - Dismiss by type filter:
gooeyToast.dismiss({ type: 'error' }) - Dark mode and RTL layout support
- Animation presets: smooth, bouncy, subtle, snappy
- Timestamp display on expanded toasts with optional
showTimestamptoggle - Close button with configurable position (
top-left/top-right) - Countdown progress bar with hover-pause and re-expand
- Keyboard dismiss (Escape) and swipe-to-dismiss on mobile
- Toast queue with configurable overflow strategy
- Dismiss callbacks:
onDismissandonAutoClose
Installation
npm install goey-toast
shadcn/ui
npx shadcn@latest add https://goey-toast.vercel.app/r/goey-toaster.json
This installs a thin wrapper component at components/ui/goey-toaster.tsx and auto-installs the goey-toast and framer-motion packages.
AI Agents (Skill)
goey-toast ships a bundled Agent Skill (SKILL.md) so coding agents (Claude Code, Cursor, etc.) know how to install and use it correctly — the required `` mount, the styles.css import, and the full API.
Install from the skills.sh registry:
npx skills add anl331/goey-toast
Or copy the skill into your project from the package itself:
npx goey-toast add-skill # -> .claude/skills/goey-toast/SKILL.md
npx goey-toast add-skill --agents # also append an AGENTS.md pointer
npx goey-toast add-skill --dir .cursor/skills/goey-toast
Peer Dependencies
goey-toast requires the following peer dependencies:
npm install react react-dom framer-motion
| Package | Version |
|---|---|
| react | >= 18.0.0 |
| react-dom | >= 18.0.0 |
| framer-motion | >= 10.0.0 |
CSS Import (Required)
You must import the goey-toast stylesheet for the component to render correctly:
import 'goey-toast/styles.css'
Add this import once in your app’s entry point (e.g., main.tsx or App.tsx). Without it, toasts will appear unstyled.
Quick Start
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add anl331/goey-toast