Socket
Socket
Sign inDemoInstall

@hi-ui/stepper

Package Overview
Dependencies
21
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hi-ui/stepper

A sub-package for @hi-ui/hiui.


Version published
Weekly downloads
31
Maintainers
2
Created
Weekly downloads
 

Readme

Source

@hi-ui/stepper

TODO: description

Usage

const Stepper = require('@hi-ui/stepper');

// TODO: DEMONSTRATE API

Props

参数说明类型可选值默认值
type步骤条项节点类型string'default''dot'
data步骤数据项源StepperItem[]--
current当前步骤位置索引,从 1 开始计数number--
placement水平或垂直展示步骤条string'vertical' | 'horizontal''horizontal'
itemLayout步骤项的布局方式string'vertical' | 'horizontal''horizontal'
onChange点击切换步骤时触发(current: number) => void--

Type

StepperItem

参数说明类型可选值默认值
title步骤项标题ReactNode--
content步骤项内容ReactNode--
icon步骤项 iconReactNode--

CHANGELOG

参数变更类型变更内容解决的问题
typedeprecated移除type字段,改为原子化引用建议还是恢复为type形态,这个变更意义不是特别大
iconupdateicon 不再支持 string 模式Stepper 组件与 Icon 组件真正解耦

FAQs

Last updated on 12 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc