Component API design patterns following Elements conventions for properties, attributes, CSS custom properties, slots, and events. Use this skill whenever the user is designing or deciding on a component API, choosing between properties vs attributes vs slots, naming CSS custom properties, designing events, avoiding impossible states, deciding whether to reflect to an attribute, using CSS Parts, implementing the DataElement interface, or applying the internal-host pattern. Also trigger when the user asks about shorthand vs granular CSS properties or event naming conventions.
$npx -y skills add nvidia/elements --skill api-designInstalls into the current project.
Run `npx skills use "https://github.com/nvidia/elements" --skill "nvidia/elements/api-design"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/nvidia/elements" that are relevant to the current task. Run `npx skills add "https://github.com/nvidia/elements"` and select the relevant skills, then follow their instructions.