スキル一覧に戻る
joneqian

vant

by joneqian

Claude Skill 合集

0🍴 0📅 2026年1月21日
GitHubで見るManusで実行

SKILL.md


name: vant description: Vant 4 Vue mobile UI component library. Use for building mobile web apps with Vue 3, Vant components, forms, popups, and business components.

Vant UI Skill

Vant 4 is a lightweight, customizable Vue 3 mobile UI component library developed by Youzan. Provides 80+ high-quality components covering various mobile scenarios.

When to Use This Skill

  • Building mobile web applications with Vue 3
  • Using Vant UI components (Button, Cell, Form, etc.)
  • Implementing mobile forms, popups, navigation
  • Configuring Vant theme customization
  • Using Vant Composables
  • Developing e-commerce mobile apps (address, coupon, product cards)

Quick Start

npm i vant
import { createApp } from 'vue';
import { Button } from 'vant';
import 'vant/lib/index.css';

const app = createApp();
app.use(Button);

Reference Files

Use Read tool to access specific reference files when detailed API information is needed.

Getting Started (getting-started/)

FileDescription
home.mdIntroduction and features overview
quickstart.mdInstallation and basic setup guide
advanced-usage.mdComponent registration, browser adaptation, SSR
locale.mdInternationalization configuration
faq.mdFrequently asked questions

Basic Components (components/)

FileComponentDescription
button.mdButtonTrigger actions
cell.mdCellList item container
config-provider.mdConfigProviderGlobal configuration and theming
icon.mdIconIcon display
image.mdImageImage display with lazy load
col.mdLayout (Col/Row)Flexbox layout system
popup.mdPopupPopup layer container
space.mdSpaceSpacing between elements
style.mdBuilt-in StylesCSS utility classes
toast.mdToastLightweight feedback

Form Components (components/)

FileComponentDescription
calendar.mdCalendarDate selection
cascader.mdCascaderCascade selection
checkbox.mdCheckboxMultiple selection
date-picker.mdDatePickerDate picker
field.mdFieldInput field
form.mdFormForm with validation
number-keyboard.mdNumberKeyboardVirtual number keyboard
password-input.mdPasswordInputPassword input with custom keyboard
picker.mdPickerColumn selector
picker-group.mdPickerGroupMultiple pickers combination
radio.mdRadioSingle selection
rate.mdRateRating with stars
search.mdSearchSearch input
slider.mdSliderRange selection
signature.mdSignatureSignature pad
stepper.mdStepperQuantity input
switch.mdSwitchToggle switch
time-picker.mdTimePickerTime selection
uploader.mdUploaderFile upload

Feedback Components (components/)

FileComponentDescription
action-sheet.mdActionSheetBottom action menu
barrage.mdBarrageBullet comments
dialog.mdDialogModal dialog
dropdown-menu.mdDropdownMenuDropdown filter menu
floating-panel.mdFloatingPanelDraggable panel
floating-bubble.mdFloatingBubbleFloating action button
loading.mdLoadingLoading indicator
notify.mdNotifyTop notification bar
overlay.mdOverlayBackground mask
pull-refresh.mdPullRefreshPull down to refresh
share-sheet.mdShareSheetShare options panel
swipe-cell.mdSwipeCellSwipeable cell actions

Display Components (components/)

FileComponentDescription
badge.mdBadgeBadge indicator
circle.mdCircleCircular progress
collapse.mdCollapseCollapsible content
count-down.mdCountDownCountdown timer
divider.mdDividerContent separator
empty.mdEmptyEmpty state placeholder
highlight.mdHighlightText highlighting
image-preview.mdImagePreviewFull screen image viewer
lazyload.mdLazyloadImage lazy loading
list.mdListInfinite scroll list
notice-bar.mdNoticeBarAnnouncement bar
popover.mdPopoverBubble popup menu
progress.mdProgressLinear progress bar
rolling-text.mdRollingTextRolling number animation
skeleton.mdSkeletonLoading placeholder
steps.mdStepsStep indicator
sticky.mdStickySticky positioning
swipe.mdSwipeCarousel/Slider
tag.mdTagLabel/Tag
text-ellipsis.mdTextEllipsisText truncation
watermark.mdWatermarkPage watermark
FileComponentDescription
action-bar.mdActionBarBottom action bar (e-commerce)
back-top.mdBackTopBack to top button
grid.mdGridGrid layout
index-bar.mdIndexBarAlphabetical index
nav-bar.mdNavBarTop navigation bar
pagination.mdPaginationPage navigation
sidebar.mdSidebarVertical navigation
tab.mdTab/TabsTab navigation
tabbar.mdTabbarBottom tab bar
tree-select.mdTreeSelectTree category selection

Business Components (components/)

FileComponentDescription
address-edit.mdAddressEditAddress form
address-list.mdAddressListAddress management list
area.mdAreaProvince/City/District picker
card.mdCardProduct card
contact-card.mdContactCardContact display card
contact-edit.mdContactEditContact form
contact-list.mdContactListContact management list
coupon-list.mdCouponListCoupon selector
submit-bar.mdSubmitBarOrder submit bar

Composables (composables/)

FileComposableDescription
vant-use-intro.mdIntroductionComposables overview
use-click-away.mduseClickAwayClick outside detection
use-count-down.mduseCountDownCountdown timer
use-custom-field-value.mduseCustomFieldValueCustom form field
use-event-listener.mduseEventListenerEvent listener hook
use-page-visibility.mdusePageVisibilityPage visibility detection
use-raf.mduseRafrequestAnimationFrame hook
use-rect.mduseRectElement size measurement
use-relation.mduseRelationParent-child component relation
use-scroll-parent.mduseScrollParentScroll container detection
use-toggle.mduseToggleBoolean toggle state
use-window-size.mduseWindowSizeWindow size tracking

Component Quick Reference

By Category

CategoryComponents
BasicButton, Cell, ConfigProvider, Icon, Image, Layout, Popup, Space, Style, Toast
FormCalendar, Cascader, Checkbox, DatePicker, Field, Form, NumberKeyboard, PasswordInput, Picker, PickerGroup, Radio, Rate, Search, Slider, Signature, Stepper, Switch, TimePicker, Uploader
FeedbackActionSheet, Barrage, Dialog, DropdownMenu, FloatingPanel, FloatingBubble, Loading, Notify, Overlay, PullRefresh, ShareSheet, SwipeCell
DisplayBadge, Circle, Collapse, CountDown, Divider, Empty, Highlight, ImagePreview, Lazyload, List, NoticeBar, Popover, Progress, RollingText, Skeleton, Steps, Sticky, Swipe, Tag, TextEllipsis, Watermark
NavigationActionBar, BackTop, Grid, IndexBar, NavBar, Pagination, Sidebar, Tab, Tabbar, TreeSelect
BusinessAddressEdit, AddressList, Area, Card, ContactCard, ContactEdit, ContactList, CouponList, SubmitBar

Function Components (API calls)

import { showToast, showDialog, showNotify, showImagePreview } from 'vant';

showToast('Message');
showDialog({ title: 'Title', message: 'Content' });
showNotify({ type: 'success', message: 'Success' });
showImagePreview(['url1', 'url2']);

Key Notes

  • Vant 4 requires Vue 3 (use vant@latest-v2 for Vue 2)
  • babel-plugin-import is no longer supported in Vant 4
  • Supports Tree Shaking by default
  • Recommended build tools: Rsbuild, Vite

Resources

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です