# ç»„ä»¶ä»‹ç» ç»„ä»¶ï¼ˆComponent)是构建页é¢çš„æ ¸å¿ƒï¼Œæ¯ä¸ªç»„件通过对数æ®å’Œæ–¹æ³•的简å•å°è£…,实现独立的å¯è§†ã€å¯äº¤äº’功能å•元。组件之间相互独立,éšå–éšç”¨ï¼Œä¹Ÿå¯ä»¥åœ¨éœ€æ±‚相åŒçš„地方é‡å¤ä½¿ç”¨ã€‚关于组件的详细å‚考文档请å‚è§[组件](../reference/apis-arkui/arkui-js/js-components-common-attributes.md)。 å¼€å‘者还å¯ä»¥é€šè¿‡ç»„ä»¶é—´åˆç†çš„æé…定义满足业务需求的新组件,å‡å°‘å¼€å‘é‡ï¼Œè‡ªå®šä¹‰ç»„ä»¶çš„å¼€å‘æ–¹æ³•请å‚è§[自定义组件](../ui/ui-js-custom-components.md)。 ## 组件分类 æ ¹æ®ç»„件的功能,å¯ä»¥åˆ†ä¸ºä»¥ä¸‹å…大类: | 组件类型 | 主è¦ç»„ä»¶ | | -------- | -------- | | 容器组件 | badgeã€dialogã€divã€formã€listã€list-itemã€list-item-groupã€panelã€popupã€refreshã€stackã€stepperã€stepper-itemã€swiperã€tabsã€tab-barã€tab-content | | 基础组件 | buttonã€chartã€dividerã€imageã€image-animatorã€inputã€labelã€marqueeã€menuã€optionã€pickerã€picker-viewã€pieceã€progressã€qrcodeã€ratingã€richtextã€searchã€selectã€sliderã€spanã€switchã€textã€textareaã€toolbarã€toolbar-itemã€toggle | | 媒体组件 | video | | 画布组件 | canvas | | æ …æ ¼ç»„ä»¶ | grid-containerã€grid-rowã€grid-col | | svg组件 | svgã€rectã€circleã€ellipseã€pathã€lineã€polylineã€polygonã€textã€tspanã€textPathã€animateã€animateMotionã€animateTransform | ## 相关实例 针对组件开å‘,有以下相关实例å¯ä¾›å‚考: - [JS组件集(JS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/code/UI/JsComponentCollection/JsComponentCollection) - [rating组件的使用(JS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/JSUI/RatingApplication) - [ç®€æ˜“è§†é¢‘æ’æ”¾å™¨ï¼ˆJS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/Media/VideoOpenHarmony) - [è´ç‰©åº”用(JS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/JSUI/ShoppingSample) - [å›¾ç‰‡å¸¸è§æ“作(JS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/Media/ImageOperation)