Reuse Shared Props
USE shared prop types from @lib/ui/props WHEN defining component props TO avoid duplication
от vultisig★ 22 звезды на GitHub
Установить Reuse Shared Props в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Reuse Shared Props
When defining component props, import and compose shared prop types from @lib/ui/props using & instead of defining inline equivalents.
Available Props
| Prop Type | Fields |
|---|---|
InputProps<T> |
value: T, onChange: (value: T) => void |
ValueProp<T> |
value: T |
OptionsProp<T> |
options: readonly T[] |
OnClickProp |
onClick: () => void |
OnFinishProp<T?, Mode?> |
onFinish: (value: T) => void (supports 'optional' mode) |
OnSuccessProp<T?, Mode?> |
onSuccess: (value: T) => void (supports 'optional' mode) |
OnBackProp |
onBack: () => void |
OnCloseProp |
onClose: () => void |
OnRemoveProp |
onRemove: () => void |
TitleProp |
title: ReactNode |
DescriptionProp |
description: ReactNode |
LabelProp |
label: ReactNode |
MessageProp |
message: ReactNode |
ChildrenProp |
children: ReactNode |
IconProp |
icon: ReactNode |
ActionProp |
action: ReactNode |
IsDisabledProp |
isDisabled?: boolean | string |
IsActiveProp |
isActive?: boolean |
StatusProp<T> |
status: T |
KindProp<T> |
kind: T |
UiProps |
style?: CSSProperties, className?: string |
AsProp<T> |
as?: T (polymorphic element type) |
RenderProp<T?> |
render: (value: T) => ReactNode |
SvgProps |
SVGProps<SVGSVGElement> (see svg-icon-pattern skill) |
onChange vs onValueChange
InputProps uses onChange, but TextInput uses onValueChange. Map accordingly:
<TextInput value={value} onValueChange={onChange} />
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Reuse Shared Props?
USE shared prop types from @lib/ui/props WHEN defining component props TO avoid duplication
Как установить скилл Reuse Shared Props?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Reuse Shared Props запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…