andershi666/lobehub-hr-demo/modal
Claude Code and agent skill by andershi666/lobehub-hr-demo
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Modal imperative API guide. Use when creating modal dialogs using createModal from @lobehub/ui. Triggers on modal component implementation or dialog creation tasks.
Install
npx vskill@latest install andershi666/lobehub-hr-demo/modalSKILL.md
The same SKILL.md was published earlier as andershi666/lobehub-hr-demo/modal.
Modal Imperative API Guide
Use createModal from @lobehub/ui for imperative modal dialogs.
Why Imperative?
| Mode | Characteristics | Recommended | |
|---|---|---|---|
| Declarative | Need open state, render <Modal /> | ❌ | |
| Imperative | Call function directly, no state | ✅ |
File Structure
Implementation
1. Content Component (MyFeatureContent.tsx)
2. Export createModal (index.tsx)
3. Usage
i18n Handling
- Content component:
useTranslationhook (React context) - createModal params:
import { t } from 'i18next'(non-hook, imperative)
useModalContext Hook
Common Config
| Property | Type | Description | ||
|---|---|---|---|---|
allowFullscreen | boolean | Allow fullscreen mode | ||
destroyOnHidden | boolean | Destroy content on close | ||
footer | `ReactNode \ | null` | Footer content | |
width | `string \ | number` | Modal width |
Examples
src/features/SkillStore/index.tsxsrc/features/LibraryModal/CreateNew/index.tsx
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinglobehub/.agents/skills/modal/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/andershi666/lobehub-hr-demo/modal)