cpn-basic-slider

Provides UDesign Slider usage guidance with code samples and prop tables for UI projects.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/UCloud-FE/udesign-cli --skill cpn-basic-slider
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpn-basic-slider
Source: https://github.com/UCloud-FE/udesign-cli/tree/main/skills/cpn-basic-slider
Command: npx skills add https://github.com/UCloud-FE/udesign-cli --skill cpn-basic-slider

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides clear guidance on when and how to use the UDesign Slider component in UI development, ensuring consistency and correctness across applications.

Core Features & Use Cases

  • Basic usage: render a Slider with min, max, and defaultValue in forms and dashboards.
  • Range mode & advanced props: configure double-thumb sliders, marks, step, and numberInput behaviors.
  • Demos & tokens: illustrates tokens and sample demos for rapid integration and visual consistency.

Quick Start

Instantiate a Slider in your UI and verify by rendering a simple demo

Frequently Asked Questions about cpn-basic-slider

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

FAQPage Schema
How do I add a range slider with two thumbs in a React form?

To add a range slider in a React form, configure the UDesign Slider component's range mode to enable double-thumb functionality. It provides structured prop tables and code samples to ensure correct implementation for dashboard and form layouts.

What is the correct way to configure slider min, max, and step values?

Configuring slider min, max, and step values requires passing the corresponding props to the UDesign Slider component during instantiation. The skill provides specific code samples and prop tables to guide the setup of these basic usage attributes.

Can I combine a number input with a slider component in UI demos?

Yes, you can combine a number input with a slider component in UI demos. The UDesign Slider supports numberInput behaviors and variations, enabling integrated numeric controls within forms and dashboards for precise user adjustments.

How do I apply design tokens to a React slider component?

To apply design tokens to a React slider component, reference the UDesign Slider's visual demos and token configurations provided by the skill. This ensures visual consistency and rapid integration across different application interfaces.

Does the UDesign slider component support custom marks for UI dashboards?

Yes, the UDesign slider component supports custom marks for UI dashboards. You can configure the marks prop alongside step and range settings to visualize specific value intervals directly on the slider track within your React application.