framework-consumer-integration

Integrate React and Next.js 16+ apps with UI-kit adapters for Link and Image.

2|Updated Dec 2, 2024
One-click install
npx skills add https://github.com/TechsioCZ/new-engine --skill framework-consumer-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: framework-consumer-integration
Source: https://github.com/TechsioCZ/new-engine/tree/main/libs/ui/skills/framework-consumer-integration
Command: npx skills add https://github.com/TechsioCZ/new-engine --skill framework-consumer-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamline consuming the UI-kit in framework apps by providing framework-native adapters and clear guidance for integrating Next.js 16+ with React, NextLink, NextImage, token CSS imports, and adapter prop forwarding.

Core Features & Use Cases

  • Supports agnostic Link and Image primitives with adapters to render framework components.
  • Enables passing adapters through molecules to preserve props and avoid wrapper components.
  • Provides best-practice guidance for framework consumption, component usage patterns, and common mistakes.

Quick Start

Install framework adapters and start consuming UI-kit components in your app using framework-native adapters.

Frequently Asked Questions about framework-consumer-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Next.js Link and Image components with a React UI-kit?

Integrate Next.js Link and Image components with a React UI-kit by using adapter-based consumption patterns. Framework-native adapters render agnostic UI-kit primitives while preserving prop forwarding and avoiding unnecessary wrapper components.

What is the best way to consume a UI-kit in a Next.js 16+ application?

The best way to consume a UI-kit in Next.js 16+ is by applying framework-native adapters. This approach handles NextLink and NextImage integration, token CSS imports, and polymorphic as props without adding wrapper components.

Can I pass adapter components through UI-kit molecules without creating wrappers?

Yes, you can pass adapters through UI-kit molecules without creating wrappers. The adapter-based consumption pattern preserves props and avoids wrapper components by passing framework-native adapters directly down the component tree.

How do I handle token CSS imports when using a UI-kit in framework apps?

Handle token CSS imports in framework apps by following the provided best-practice guidance for framework consumption. This ensures proper alignment of frontmatter metadata and correct resource linking for tokens during adapter integration.

Does the polymorphic as prop work with UI-kit adapters in React?

Yes, the polymorphic as prop works with UI-kit adapters in React. The adapter-based pattern includes wrapper-avoidance checks to ensure polymorphic props are forwarded correctly to framework-native components without breaking component composition.