Skip to content
Back to skills

Disabled Context

ASecurity

Use when a component has a `disabled` state/variant, or when building a compound component that owns a disabled state — inherit/provide it via the shared disabled context so state flows from parent to sub-components.

  • 23 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 12, 2026
development

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add LedgerHQ/lumen --skill disabled-context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Disabled Context?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Disabled Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ledgerhq-disabled-context/badge)](https://www.skillsdirectory.com/skills/ledgerhq-disabled-context)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: disabled-context
description: >-
  Use when a component has a `disabled` state/variant, or when building a
  compound component that owns a disabled state — inherit/provide it via the
  shared disabled context so state flows from parent to sub-components.
paths: "libs/**/*.tsx"
---

# Shared disabled context

Source of truth: `libs/utils-shared/src/lib/context/disabledContext.tsx`

- **Consumers**: Any component with a `disabled` state/variant must use the shared disabled context so it inherits disabled state from parent components. Follow existing consumers (e.g. `BaseButton`, `Switch`) for the pattern.
- **Providers**: Compound components that own a disabled state must provide it via the shared disabled context so sub-components inherit it automatically. If the compound component already has its own context provider, add disabled to that context instead of nesting a separate provider.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.