clr-collapsible-panel
Skill by vmware-clarity
Documents the base classes in @clr/angular/collapsible-panel for building custom Clarity expand and collapse components. It is for Angular developers who need a panel group that clr-accordion or clr-stepper cannot express.
Install clr-collapsible-panel
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vmware-clarity/ng-clarity /tmp/ng-clarity && mkdir -p ~/.claude/skills && cp -r /tmp/ng-clarity/projects/angular/collapsible-panel ~/.claude/skills/clr-collapsible-panelRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vmware-clarity/ng-clarity /tmp/ng-clarity && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ng-clarity/projects/angular/collapsible-panel ~/.gemini/antigravity-cli/skills/clr-collapsible-panelAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install clr-collapsible-panel in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill documents the base classes in @clr/angular/collapsible-panel for building custom Clarity collapsible components. It covers the abstract CollapsiblePanel, CollapsiblePanelService, CollapsiblePanelModel and CollapsiblePanelGroupModel, plus the expand and collapse animations. The package ships no component of its own, so you write the panel template yourself.
ClrAccordionPanel and ClrStepperPanel both extend CollapsiblePanel. The skill gives a subclass pattern: implement disabled, getPanelStateClasses, getContentId and getHeaderId, then forward input changes with handlePanelInputChanges. It also sets out rules for multi-open or single-open groups, animation triggers, accessibility and unique ids. It is aimed at developers who need a custom expand and collapse panel group that clr-accordion or clr-stepper cannot express.
Written from the project's SKILL.md and checked against it.
What it can do
- Custom panel base classShows how to subclass the abstract CollapsiblePanel with the required getters and methods.
- Panel group serviceExplains providing CollapsiblePanelService on the group and reporting panel order with updatePanelOrder.
- Multi-open and single-open groupsDescribes the default multi-open CollapsiblePanelGroupModel and how to subclass it for single-open behavior.
- Expand and collapse animationsCovers collapsiblePanelExpandAnimation, collapsiblePanelAnimation and the trigger building blocks.
- Accessible header patternDescribes a native button header with aria-expanded, aria-controls and a role region for content.
- Collapsible panel stylingPoints to the collapsible-panel SCSS mixin and the --clr-collapsible-panel-* custom properties.
What you need
- Angular project
- @clr/angular package installed
Try asking
- Build a custom Clarity panel group that can only have one panel open
- Show me how to subclass CollapsiblePanel with disabled and header id getters
- Add the Clarity collapsible panel expand animation to my custom panel
Good to know
- Provides base classes only, with no ready-made component
- The base animation collapsiblePanelExpandAnimation animates expand only
- The group must provide CollapsiblePanelService, not the panel
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: projects/angular/collapsible-panel/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to clr-collapsible-panel
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
clr-collapsible-panel: common questions
What is the Clarity collapsible panel base class used for?
It is used to build custom expand and collapse components. ClrAccordionPanel and ClrStepperPanel both extend it.
When should I use clr-accordion or clr-stepper instead?
The source says to use clr-accordion for expand and collapse sections and clr-stepper for step-by-step form flows. Extend CollapsiblePanel only when neither can express the component.
Does the panel group allow more than one open panel?
Yes, the base CollapsiblePanelGroupModel lets panels open independently. For single-open behavior, the source says to subclass the group model and service.
How do I install clr-collapsible-panel?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clr-collapsible-panel free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is clr-collapsible-panel safe to use?
It scores 68 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to clr-collapsible-panel?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
