primereact-v10
PrimeReact v10 component reference, API lookup, and version guardrails. Use whenever a project imports from `primereact/*`, lists primereact in package.json, or the user mentions PrimeReact, PrimeFaces, PrimeFlex, PrimeIcons, PassThrough/`pt`, or v10 components like DataTable, Dropdown, Calendar, OverlayPanel, TabView, InputSwitch, or `pi pi-*` icons. Load this even for requests that look trivial, such as adding one input or changing one prop, because PrimeReact v11 renamed or removed most of the library and is commercially licensed, which makes recalled knowledge of "current" PrimeReact actively wrong in a v10 project.
- License 许可
- MIT
- 所属仓库
- davner/dotfiles
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- primereact-v10
- description
- PrimeReact v10 component reference, API lookup, and version guardrails. Use whenever a project imports from `primereact/*`, lists primereact in package.json, or the user mentions PrimeReact, PrimeFaces, PrimeFlex, PrimeIcons, PassThrough/`pt`, or v10 components like DataTable, Dropdown, Calendar, OverlayPanel, TabView, InputSwitch, or `pi pi-*` icons. Load this even for requests that look trivial, such as adding one input or changing one prop, because PrimeReact v11 renamed or removed most of the library and is commercially licensed, which makes recalled knowledge of "current" PrimeReact actively wrong in a v10 project.
- allowed-tools
- Bash(node -p *), Bash(bash *pr10.sh*), Bash(ls -d *), Bash(curl -sS *)
02 资源文件 500
- 参考文档evals/evals.json6.6 KB
- 参考文档evals/RESULTS.md4.1 KB
- 参考文档examples/_broken.json2.7 KB
- 脚本examples/_service/CarService.js1.0 KB
- 脚本examples/_service/CountryService.js11.7 KB
- 脚本examples/_service/CustomerService.js277.0 KB
- 脚本examples/_service/EventService.js1.1 KB
- 脚本examples/_service/IconService.js419 B
- 脚本examples/_service/NodeService.js14.5 KB
- 脚本examples/_service/PhotoService.js4.8 KB
- 脚本examples/_service/ProductService.js40.3 KB
- 其他examples/accordion/basic.basic.jsx1.8 KB
- 其他examples/accordion/basic.typescript.tsx2.3 KB
- 其他examples/accordion/controlled.basic.jsx2.3 KB
- 其他examples/accordion/controlled.typescript.tsx3.0 KB
- 其他examples/accordion/disabled.basic.jsx1.8 KB
- 其他examples/accordion/disabled.typescript.tsx2.3 KB
- 其他examples/accordion/dynamic.basic.jsx46 B
- 其他examples/accordion/dynamic.typescript.tsx929 B
- 其他examples/accordion/import.basic.jsx64 B
- 其他examples/accordion/multiple.basic.jsx1.8 KB
- 其他examples/accordion/multiple.typescript.tsx2.3 KB
- 其他examples/accordion/tailwind.theming.basic.jsx2.2 KB
- 其他examples/accordion/template.basic.jsx2.8 KB
- 其他examples/accordion/template.typescript.tsx3.7 KB
- 其他examples/autocomplete/accessibility.basic.jsx173 B
- 其他examples/autocomplete/basic.basic.jsx112 B
- 其他examples/autocomplete/basic.typescript.tsx633 B
- 其他examples/autocomplete/disabled.basic.jsx49 B
- 其他examples/autocomplete/disabled.typescript.tsx281 B
- 其他examples/autocomplete/dropdown.basic.jsx120 B
- 其他examples/autocomplete/dropdown.typescript.tsx737 B
- 其他examples/autocomplete/filled.basic.jsx128 B
- 其他examples/autocomplete/filled.typescript.tsx651 B
- 其他examples/autocomplete/floatlabel.basic.jsx213 B
- 其他examples/autocomplete/floatlabel.typescript.tsx776 B
- 其他examples/autocomplete/forceselection.basic.jsx126 B
- 其他examples/autocomplete/forceselection.typescript.tsx682 B
- 其他examples/autocomplete/group.basic.jsx280 B
- 其他examples/autocomplete/group.typescript.tsx2.6 KB
- 其他examples/autocomplete/import.basic.jsx56 B
- 其他examples/autocomplete/invalid.basic.jsx138 B
- 其他examples/autocomplete/invalid.typescript.tsx662 B
- 其他examples/autocomplete/multiple.basic.jsx169 B
- 其他examples/autocomplete/multiple.typescript.tsx1.4 KB
- 其他examples/autocomplete/objects.basic.jsx156 B
- 其他examples/autocomplete/objects.typescript.tsx1.5 KB
- 其他examples/autocomplete/tailwind.theming.basic.jsx3.7 KB
- 其他examples/autocomplete/template.basic.jsx276 B
- 其他examples/autocomplete/template.typescript.tsx2.7 KB
- 其他examples/autocomplete/virtualscroll.basic.jsx207 B
- 其他examples/autocomplete/virtualscroll.typescript.tsx1.3 KB
- 其他examples/avatar/group.basic.jsx479 B
- 其他examples/avatar/group.typescript.tsx1.0 KB
- 其他examples/avatar/icon.basic.jsx606 B
- 其他examples/avatar/icon.typescript.tsx1.4 KB
- 其他examples/avatar/image.basic.jsx536 B
- 其他examples/avatar/image.typescript.tsx1.4 KB
- 其他examples/avatar/import.basic.jsx124 B
- 其他examples/avatar/label.basic.jsx536 B
- 其他examples/avatar/label.typescript.tsx1.2 KB
- 其他examples/avatar/tailwind.theming.basic.jsx888 B
- 其他examples/badge/basic.basic.jsx26 B
- 其他examples/badge/basic.typescript.tsx242 B
- 其他examples/badge/button.basic.jsx216 B
- 其他examples/badge/button.typescript.tsx553 B
- 其他examples/badge/import.basic.jsx42 B
- 其他examples/badge/position.basic.jsx356 B
- 其他examples/badge/position.typescript.tsx687 B
- 其他examples/badge/severity.basic.jsx296 B
- 其他examples/badge/severity.typescript.tsx604 B
- 其他examples/badge/size.basic.jsx143 B
- 其他examples/badge/size.typescript.tsx414 B
- 其他examples/badge/tailwind.theming.basic.jsx1002 B
- 其他examples/blockui/basic.basic.jsx811 B
- 其他examples/blockui/basic.typescript.tsx1.3 KB
- 其他examples/blockui/document.basic.jsx99 B
- 其他examples/blockui/document.typescript.tsx641 B
- 其他examples/blockui/import.basic.jsx46 B
- 其他examples/blockui/tailwind.theming.basic.jsx106 B
- 其他examples/blockui/template.basic.jsx874 B
- 其他examples/blockui/template.typescript.tsx1.4 KB
- 其他examples/breadcrumb/basic.basic.jsx41 B
- 其他examples/breadcrumb/basic.typescript.tsx471 B
- 其他examples/breadcrumb/import.basic.jsx52 B
- 其他examples/breadcrumb/router.basic.jsx41 B
- 其他examples/breadcrumb/router.typescript.tsx615 B
- 其他examples/breadcrumb/tailwind.theming.basic.jsx855 B
- 其他examples/breadcrumb/template.basic.jsx41 B
- 其他examples/breadcrumb/template.typescript.tsx929 B
- 其他examples/button/accessibility.basic.jsx246 B
- 其他examples/button/badges.basic.jsx162 B
- 其他examples/button/badges.typescript.tsx409 B
- 其他examples/button/basic.basic.jsx26 B
- 其他examples/button/basic.typescript.tsx244 B
- 其他examples/button/buttongroup.basic.jsx174 B
- 其他examples/button/buttongroup.typescript.tsx498 B
- 其他examples/button/disabled.basic.jsx35 B
- 其他examples/button/disabled.typescript.tsx256 B
- 其他examples/button/icononly.basic.jsx2.7 KB
- 其他examples/button/icononly.typescript.tsx3.9 KB
- 其他examples/button/icons.basic.jsx136 B
- 其他examples/button/icons.typescript.tsx394 B
- 其他examples/button/import.basic.jsx44 B
- 其他examples/button/link.basic.jsx208 B
- 其他examples/button/link.typescript.tsx461 B
- 其他examples/button/loading.basic.jsx78 B
- 其他examples/button/loading.typescript.tsx524 B
- 其他examples/button/outlined.basic.jsx356 B
- 其他examples/button/outlined.typescript.tsx665 B
- 其他examples/button/raised.basic.jsx342 B
- 其他examples/button/raised.typescript.tsx649 B
- 其他examples/button/raisedtext.basic.jsx377 B
- 其他examples/button/raisedtext.typescript.tsx688 B
- 其他examples/button/rounded.basic.jsx349 B
- 其他examples/button/rounded.typescript.tsx657 B
- 其他examples/button/severity.basic.jsx293 B
- 其他examples/button/severity.typescript.tsx602 B
- 其他examples/button/sizes.basic.jsx159 B
- 其他examples/button/sizes.typescript.tsx436 B
- 其他examples/button/tailwind.theming.basic.jsx9.3 KB
- 其他examples/button/template.basic.jsx212 B
- 其他examples/button/template.typescript.tsx457 B
- 其他examples/button/text.basic.jsx328 B
- 其他examples/button/text.typescript.tsx633 B
- 其他examples/calendar/accessibility.basic.jsx164 B
- 其他examples/calendar/basic.basic.jsx177 B
- 其他examples/calendar/basic.typescript.tsx531 B
- 其他examples/calendar/buttonbar.basic.jsx75 B
- 其他examples/calendar/buttonbar.typescript.tsx425 B
- 其他examples/calendar/datetemplate.basic.jsx89 B
- 其他examples/calendar/datetemplate.typescript.tsx697 B
- 其他examples/calendar/disabled.basic.jsx22 B
- 其他examples/calendar/disabled.typescript.tsx260 B
- 其他examples/calendar/filled.basic.jsx78 B
- 其他examples/calendar/filled.typescript.tsx425 B
- 其他examples/calendar/floatlabel.basic.jsx164 B
- 其他examples/calendar/floatlabel.typescript.tsx603 B
- 其他examples/calendar/format.basic.jsx83 B
- 其他examples/calendar/format.typescript.tsx431 B
- 其他examples/calendar/icon.basic.jsx70 B
- 其他examples/calendar/icon.typescript.tsx1.2 KB
- 其他examples/calendar/import.basic.jsx48 B
- 其他examples/calendar/inline.basic.jsx78 B
- 其他examples/calendar/inline.typescript.tsx424 B
- 其他examples/calendar/invalid.basic.jsx20 B
- 其他examples/calendar/invalid.typescript.tsx257 B
- 其他examples/calendar/locale.basic.jsx73 B
- 其他examples/calendar/locale.typescript.tsx1.1 KB
- 其他examples/calendar/minmax.basic.jsx123 B
- 其他examples/calendar/minmax.typescript.tsx966 B
- 其他examples/calendar/monthpicker.basic.jsx93 B
- 其他examples/calendar/monthpicker.typescript.tsx445 B
- 其他examples/calendar/multiple.basic.jsx102 B
- 其他examples/calendar/multiple.typescript.tsx455 B
- 其他examples/calendar/multiplemonths.basic.jsx80 B
- 其他examples/calendar/multiplemonths.typescript.tsx435 B
- 其他examples/calendar/range.basic.jsx120 B
- 其他examples/calendar/range.typescript.tsx480 B
- 其他examples/calendar/tailwind.theming.basic.jsx7.2 KB
- 其他examples/calendar/time.basic.jsx270 B
- 其他examples/calendar/time.typescript.tsx1.4 KB
- 其他examples/calendar/touchui.basic.jsx69 B
- 其他examples/calendar/touchui.typescript.tsx417 B
- 其他examples/calendar/yearpicker.basic.jsx89 B
- 其他examples/calendar/yearpicker.typescript.tsx440 B
- 其他examples/captcha/captcha.basic.jsx90 B
- 其他examples/captcha/captcha.typescript.tsx527 B
- 其他examples/captcha/import.basic.jsx46 B
- 其他examples/card/accessibility.basic.jsx41 B
- 其他examples/card/advanced.basic.jsx400 B
- 其他examples/card/advanced.typescript.tsx1.0 KB
- 其他examples/card/basic.basic.jsx318 B
- 其他examples/card/basic.typescript.tsx564 B
- 其他examples/card/import.basic.jsx40 B
- 其他examples/card/tailwind.theming.basic.jsx723 B
- 其他examples/carousel/basic.basic.jsx128 B
- 其他examples/carousel/basic.typescript.tsx2.7 KB
- 其他examples/carousel/circular.basic.jsx189 B
- 其他examples/carousel/circular.typescript.tsx2.8 KB
- 其他examples/carousel/import.basic.jsx48 B
- 其他examples/carousel/numscroll.basic.jsx128 B
- 其他examples/carousel/numscroll.typescript.tsx2.7 KB
- 其他examples/carousel/responsive.basic.jsx128 B
- 其他examples/carousel/responsive.typescript.tsx2.7 KB
- 其他examples/carousel/tailwind.theming.basic.jsx1.7 KB
- 其他examples/carousel/vertical.basic.jsx144 B
- 其他examples/carousel/vertical.typescript.tsx2.3 KB
- 其他examples/cascadeselect/accessibility.basic.jsx110 B
- 其他examples/cascadeselect/basic.basic.jsx306 B
- 其他examples/cascadeselect/basic.typescript.tsx3.2 KB
- 其他examples/cascadeselect/clearicon.basic.jsx316 B
- 其他examples/cascadeselect/clearicon.typescript.tsx3.2 KB
- 其他examples/cascadeselect/disabled.basic.jsx80 B
- 其他examples/cascadeselect/disabled.typescript.tsx314 B
- 其他examples/cascadeselect/filled.basic.jsx323 B
- 其他examples/cascadeselect/filled.typescript.tsx3.3 KB
- 其他examples/cascadeselect/floatlabel.basic.jsx375 B
- 其他examples/cascadeselect/floatlabel.typescript.tsx3.4 KB
- 其他examples/cascadeselect/import.basic.jsx58 B
- 其他examples/cascadeselect/invalid.basic.jsx313 B
- 其他examples/cascadeselect/invalid.typescript.tsx3.2 KB
- 其他examples/cascadeselect/loading.basic.jsx130 B
- 其他examples/cascadeselect/loading.typescript.tsx401 B
- 其他examples/cascadeselect/tailwind.theming.basic.jsx2.1 KB
- 其他examples/cascadeselect/template.basic.jsx341 B
- 其他examples/cascadeselect/template.typescript.tsx3.8 KB
- 其他examples/chart/accessibility.basic.jsx146 B
- 其他examples/chart/basic.basic.jsx61 B
- 其他examples/chart/basic.typescript.tsx1.4 KB
- 其他examples/chart/chartjs.basic.jsx21 B
- 其他examples/chart/combo.basic.jsx62 B
- 其他examples/chart/combo.typescript.tsx2.6 KB
- 其他examples/chart/doughnut.basic.jsx96 B
- 其他examples/chart/doughnut.typescript.tsx1.4 KB
- 其他examples/chart/horizontalbar.basic.jsx61 B
- 其他examples/chart/horizontalbar.typescript.tsx2.5 KB
- 其他examples/chart/import.basic.jsx42 B
- 其他examples/chart/line.basic.jsx62 B
- 其他examples/chart/line.typescript.tsx2.3 KB
- 其他examples/chart/linestyles.basic.jsx62 B
- 其他examples/chart/linestyles.typescript.tsx2.6 KB
- 其他examples/chart/multiaxis.basic.jsx62 B
- 其他examples/chart/multiaxis.typescript.tsx2.8 KB
- 其他examples/chart/piechart.basic.jsx91 B
- 其他examples/chart/piechart.typescript.tsx1.5 KB
- 其他examples/chart/polararea.basic.jsx97 B
- 其他examples/chart/polararea.typescript.tsx1.8 KB
- 其他examples/chart/radar.basic.jsx93 B
- 其他examples/chart/radar.typescript.tsx2.4 KB
- 其他examples/chart/stackedbar.basic.jsx61 B
- 其他examples/chart/stackedbar.typescript.tsx2.6 KB
- 其他examples/chart/tailwind.theming.basic.jsx65 B
- 其他examples/chart/verticalbar.basic.jsx61 B
- 其他examples/chart/verticalbar.typescript.tsx2.5 KB
- 其他examples/checkbox/accessibility.basic.jsx193 B
- 其他examples/checkbox/basic.basic.jsx78 B
- 其他examples/checkbox/basic.typescript.tsx374 B
- 其他examples/checkbox/disabled.basic.jsx39 B
- 其他examples/checkbox/disabled.typescript.tsx264 B
- 其他examples/checkbox/dynamic.basic.jsx403 B
- 其他examples/checkbox/dynamic.typescript.tsx1.6 KB
- 其他examples/checkbox/filled.basic.jsx78 B
- 其他examples/checkbox/filled.typescript.tsx392 B
- 其他examples/checkbox/group.basic.jsx1.1 KB
- 其他examples/checkbox/group.typescript.tsx1.8 KB
- 其他examples/checkbox/import.basic.jsx48 B
- 其他examples/checkbox/invalid.basic.jsx99 B
- 其他examples/checkbox/invalid.typescript.tsx388 B
- 其他examples/checkbox/tailwind.theming.basic.jsx1.2 KB
- 其他examples/chip/basic.basic.jsx109 B
- 其他examples/chip/basic.typescript.tsx352 B
- 其他examples/chip/icon.basic.jsx194 B
- 其他examples/chip/icon.typescript.tsx436 B
- 其他examples/chip/image.basic.jsx282 B
- 其他examples/chip/image.typescript.tsx673 B
- 其他examples/chip/import.basic.jsx40 B
- 其他examples/chip/tailwind.theming.basic.jsx554 B
- 其他examples/chip/template.basic.jsx28 B
- 其他examples/chip/template.typescript.tsx477 B
- 其他examples/chips/accessibility.basic.jsx159 B
- 其他examples/chips/basic.basic.jsx60 B
- 其他examples/chips/basic.typescript.tsx360 B
- 其他examples/chips/disabled.basic.jsx42 B
- 其他examples/chips/disabled.typescript.tsx241 B
- 其他examples/chips/filled.basic.jsx77 B
- 其他examples/chips/filled.typescript.tsx378 B
- 其他examples/chips/floatlabel.basic.jsx152 B
- 其他examples/chips/floatlabel.typescript.tsx545 B
- 其他examples/chips/import.basic.jsx42 B
- 其他examples/chips/invalid.basic.jsx68 B
- 其他examples/chips/invalid.typescript.tsx370 B
- 其他examples/chips/keyfilter.basic.jsx76 B
- 其他examples/chips/keyfilter.typescript.tsx380 B
- 其他examples/chips/separator.basic.jsx74 B
- 其他examples/chips/separator.typescript.tsx378 B
- 其他examples/chips/tailwind.theming.basic.jsx1.3 KB
- 其他examples/chips/template.basic.jsx86 B
- 其他examples/chips/template.typescript.tsx603 B
- 其他examples/colorpicker/basic.basic.jsx67 B
- 其他examples/colorpicker/basic.typescript.tsx410 B
- 其他examples/colorpicker/disabled.basic.jsx25 B
- 其他examples/colorpicker/disabled.typescript.tsx255 B
- 其他examples/colorpicker/format.basic.jsx255 B
- 其他examples/colorpicker/format.typescript.tsx1.8 KB
- 其他examples/colorpicker/import.basic.jsx54 B
- 其他examples/colorpicker/inline.basic.jsx73 B
- 其他examples/colorpicker/inline.typescript.tsx418 B
- 其他examples/colorpicker/tailwind.theming.basic.jsx2.0 KB
- 其他examples/colors/overview.basic.jsx352 B
- 其他examples/configuration/addlocale.locale.basic.jsx563 B
- 其他examples/configuration/appendto.basic.jsx292 B
- 其他examples/configuration/csstransition.basic.jsx296 B
- 其他examples/configuration/filtermatchmode.basic.jsx832 B
- 其他examples/configuration/hideoverlays.basic.jsx411 B
- 其他examples/configuration/import.locale.basic.jsx122 B
- 其他examples/configuration/inputstyle.basic.jsx296 B
- 其他examples/configuration/nonce.basic.jsx294 B
- 其他examples/configuration/nullsortorder.basic.jsx292 B
- 其他examples/configuration/ripple.basic.jsx288 B
- 其他examples/configuration/setlocale.locale.basic.jsx14 B
- 其他examples/configuration/setuplocale.locale.basic.jsx295 B
- 其他examples/configuration/stylecontainer.basic.jsx394 B
- 其他examples/configuration/zindex.basic.jsx543 B
- 其他examples/confirmdialog/basic.basic.jsx183 B
- 其他examples/confirmdialog/basic.typescript.tsx1.6 KB
- 其他examples/confirmdialog/declarative.basic.jsx328 B
- 其他examples/confirmdialog/declarative.typescript.tsx1.1 KB
- 其他examples/confirmdialog/headless.basic.jsx1.5 KB
- 其他examples/confirmdialog/headless.typescript.tsx2.8 KB
- 其他examples/confirmdialog/import.basic.jsx179 B
- 其他examples/confirmdialog/position.basic.jsx1.4 KB
- 其他examples/confirmdialog/position.typescript.tsx2.5 KB
- 其他examples/confirmdialog/responsive.basic.jsx441 B
- 其他examples/confirmdialog/responsive.typescript.tsx1.4 KB
- 其他examples/confirmdialog/tailwind.theming.basic.jsx847 B
- 其他examples/confirmdialog/template.basic.jsx205 B
- 其他examples/confirmdialog/template.typescript.tsx1.4 KB
- 其他examples/confirmpopup/basic.basic.jsx292 B
- 其他examples/confirmpopup/basic.typescript.tsx1.6 KB
- 其他examples/confirmpopup/declarative.basic.jsx325 B
- 其他examples/confirmpopup/declarative.typescript.tsx1.2 KB
- 其他examples/confirmpopup/headless.basic.jsx876 B
- 其他examples/confirmpopup/headless.typescript.tsx2.3 KB
- 其他examples/confirmpopup/import.basic.jsx171 B
- 其他examples/confirmpopup/tailwind.theming.basic.jsx1.1 KB
- 其他examples/confirmpopup/template.basic.jsx196 B
- 其他examples/confirmpopup/template.typescript.tsx1.6 KB
- 其他examples/contextmenu/basic.basic.jsx175 B
- 其他examples/contextmenu/basic.typescript.tsx697 B
- 其他examples/contextmenu/command.basic.jsx964 B
- 其他examples/contextmenu/command.typescript.tsx3.9 KB
- 其他examples/contextmenu/document.basic.jsx56 B
- 其他examples/contextmenu/document.typescript.tsx1.0 KB
- 其他examples/contextmenu/import.basic.jsx54 B
- 其他examples/contextmenu/router.basic.jsx337 B
- 其他examples/contextmenu/router.typescript.tsx1.3 KB
- 其他examples/contextmenu/tailwind.theming.basic.jsx1.5 KB
- 其他examples/contextmenu/template.basic.jsx1.4 KB
- 其他examples/contextmenu/template.typescript.tsx3.0 KB
- 其他examples/csslayer/bootstrap.basic.jsx95 B
- 其他examples/csslayer/normalize.basic.jsx79 B
- 其他examples/csslayer/reset.basic.jsx129 B
- 其他examples/csslayer/specificity.basic.jsx729 B
- 其他examples/csslayer/tailwind.basic.jsx182 B
- 其他examples/customicons/fontawesome.basic.jsx228 B
- 其他examples/customicons/image.basic.jsx120 B
- 其他examples/customicons/material.basic.jsx154 B
- 其他examples/customicons/svg.basic.jsx331 B
- 其他examples/datascroller/basic.basic.jsx110 B
- 其他examples/datascroller/basic.typescript.tsx3.3 KB
- 其他examples/datascroller/import.basic.jsx56 B
- 其他examples/datascroller/inline.basic.jsx133 B
- 其他examples/datascroller/inline.typescript.tsx3.3 KB
- 其他examples/datascroller/loader.basic.jsx153 B
- 其他examples/datascroller/loader.typescript.tsx3.5 KB
- 其他examples/datascroller/tailwind.theming.basic.jsx474 B
- 其他examples/datatable/advanced.filter.basic.jsx1.8 KB
- 其他examples/datatable/advanced.filter.typescript.tsx12.6 KB
- 其他examples/datatable/basic.basic.jsx289 B
- 其他examples/datatable/basic.filter.basic.jsx1.1 KB
- 其他examples/datatable/basic.filter.typescript.tsx8.3 KB
- 其他examples/datatable/basic.paginator.basic.jsx472 B
- 其他examples/datatable/basic.paginator.typescript.tsx1.4 KB
- 其他examples/datatable/basic.typescript.tsx1.0 KB
- 其他examples/datatable/celledit.edit.basic.jsx389 B
- 其他examples/datatable/celledit.edit.typescript.tsx3.3 KB
- 其他examples/datatable/checkbox.rowselection.basic.jsx586 B
- 其他examples/datatable/checkbox.rowselection.typescript.tsx1.9 KB
- 其他examples/datatable/columngroup.basic.jsx449 B
- 其他examples/datatable/columngroup.typescript.tsx4.2 KB
- 其他examples/datatable/columntoggle.basic.jsx251 B
- 其他examples/datatable/columntoggle.typescript.tsx1.9 KB
- 其他examples/datatable/conditionalstyle.basic.jsx338 B
- 其他examples/datatable/conditionalstyle.typescript.tsx1.7 KB
- 其他examples/datatable/contextmenu.basic.jsx575 B
- 其他examples/datatable/contextmenu.typescript.tsx2.5 KB
- 其他examples/datatable/custom.filter.basic.jsx1.7 KB
- 其他examples/datatable/custom.filter.typescript.tsx9.5 KB
- 其他examples/datatable/customers.samples.basic.jsx2.2 KB
- 其他examples/datatable/customers.samples.typescript.tsx11.4 KB
- 其他examples/datatable/disabled.cellselection.basic.jsx585 B
- 其他examples/datatable/disabled.cellselection.typescript.tsx2.3 KB
- 其他examples/datatable/disabled.rowselection.basic.jsx479 B
- 其他examples/datatable/disabled.rowselection.typescript.tsx1.7 KB
- 其他examples/datatable/dynamiccolumns.basic.jsx189 B
- 其他examples/datatable/dynamiccolumns.typescript.tsx1.2 KB
- 其他examples/datatable/events.cellselection.basic.jsx527 B
- 其他examples/datatable/events.cellselection.typescript.tsx2.1 KB
- 其他examples/datatable/events.rowselection.basic.jsx497 B
- 其他examples/datatable/events.rowselection.typescript.tsx2.0 KB
- 其他examples/datatable/expandable.rowgroup.basic.jsx825 B
- 其他examples/datatable/expandable.rowgroup.typescript.tsx4.1 KB
- 其他examples/datatable/expandmode.colresize.basic.jsx346 B
- 其他examples/datatable/expandmode.colresize.typescript.tsx1.1 KB
- 其他examples/datatable/export.basic.jsx554 B
- 其他examples/datatable/export.typescript.tsx3.5 KB
- 其他examples/datatable/fitmode.colresize.basic.jsx320 B
- 其他examples/datatable/fitmode.colresize.typescript.tsx1.1 KB
- 其他examples/datatable/flexible.scroll.basic.jsx681 B
- 其他examples/datatable/flexible.scroll.typescript.tsx1.8 KB
- 其他examples/datatable/frozencolumns.scroll.basic.jsx1.2 KB
- 其他examples/datatable/frozencolumns.scroll.typescript.tsx2.5 KB
- 其他examples/datatable/frozenrows.scroll.basic.jsx447 B
- 其他examples/datatable/frozenrows.scroll.typescript.tsx2.9 KB
- 其他examples/datatable/gridlines.basic.jsx303 B
- 其他examples/datatable/gridlines.typescript.tsx1.1 KB
- 其他examples/datatable/horizontal.scroll.basic.jsx1014 B
- 其他examples/datatable/horizontal.scroll.typescript.tsx2.1 KB
- 其他examples/datatable/import.basic.jsx94 B
- 其他examples/datatable/lazy.virtualscroll.basic.jsx637 B
- 其他examples/datatable/lazy.virtualscroll.typescript.tsx2.7 KB
- 其他examples/datatable/lazyload.basic.jsx1.0 KB
- 其他examples/datatable/lazyload.typescript.tsx5.2 KB
- 其他examples/datatable/multiple.cellselection.basic.jsx537 B
- 其他examples/datatable/multiple.cellselection.typescript.tsx1.9 KB
- 其他examples/datatable/multiple.rowselection.basic.jsx534 B
- 其他examples/datatable/multiple.rowselection.typescript.tsx1.8 KB
- 其他examples/datatable/multiplecolumns.sort.basic.jsx445 B
- 其他examples/datatable/multiplecolumns.sort.typescript.tsx1.2 KB
- 其他examples/datatable/preload.virtualscroll.basic.jsx515 B
- 其他examples/datatable/preload.virtualscroll.typescript.tsx1.1 KB
- 其他examples/datatable/presort.sort.basic.jsx568 B
- 其他examples/datatable/presort.sort.typescript.tsx1.6 KB
- 其他examples/datatable/products.samples.basic.jsx1.4 KB
- 其他examples/datatable/products.samples.typescript.tsx16.1 KB
- 其他examples/datatable/radiobutton.rowselection.basic.jsx585 B
- 其他examples/datatable/radiobutton.rowselection.typescript.tsx1.9 KB
- 其他examples/datatable/removablesort.sort.basic.jsx439 B
- 其他examples/datatable/removablesort.sort.typescript.tsx1.2 KB
- 其他examples/datatable/reorder.basic.jsx228 B
- 其他examples/datatable/reorder.typescript.tsx1.4 KB
- 其他examples/datatable/rowedit.edit.basic.jsx805 B
- 其他examples/datatable/rowedit.edit.typescript.tsx3.9 KB
- 其他examples/datatable/rowexpansion.basic.jsx777 B
- 其他examples/datatable/rowexpansion.typescript.tsx5.9 KB
- 其他examples/datatable/rowspan.rowgroup.basic.jsx921 B
- 其他examples/datatable/rowspan.rowgroup.typescript.tsx3.3 KB
- 其他examples/datatable/single.cellselection.basic.jsx511 B
- 其他examples/datatable/single.cellselection.typescript.tsx1.8 KB
- 其他examples/datatable/single.rowselection.basic.jsx516 B
- 其他examples/datatable/single.rowselection.typescript.tsx1.8 KB
- 其他examples/datatable/singlecolumn.sort.basic.jsx425 B
- 其他examples/datatable/singlecolumn.sort.typescript.tsx1.2 KB
- 其他examples/datatable/size.basic.jsx388 B
- 其他examples/datatable/size.typescript.tsx1.7 KB
- 其他examples/datatable/stateful.basic.jsx1.2 KB
- 其他examples/datatable/stateful.typescript.tsx7.1 KB
- 其他examples/datatable/stripedrows.basic.jsx301 B
- 其他examples/datatable/stripedrows.typescript.tsx1.1 KB
- 其他examples/datatable/subheader.rowgroup.basic.jsx785 B
- 其他examples/datatable/subheader.rowgroup.typescript.tsx3.8 KB
- 其他examples/datatable/tailwind.theming.basic.jsx15.9 KB
- 其他examples/datatable/template.basic.jsx497 B
- 其他examples/datatable/template.paginator.basic.jsx725 B
- 其他examples/datatable/template.paginator.typescript.tsx1.9 KB
- 其他examples/datatable/template.typescript.tsx2.8 KB
- 其他examples/datatable/vertical.scroll.basic.jsx343 B
- 其他examples/datatable/vertical.scroll.typescript.tsx1.1 KB
- 其他examples/dataview/basic.basic.jsx58 B
- 其他examples/dataview/basic.typescript.tsx3.4 KB
- 其他examples/dataview/import.basic.jsx71 B
- 其他examples/dataview/layout.basic.jsx92 B
- 其他examples/dataview/layout.typescript.tsx5.5 KB
- 其他examples/dataview/loading.basic.jsx92 B
- 其他examples/dataview/loading.typescript.tsx4.2 KB
- 其他examples/dataview/pagination.basic.jsx77 B
- 其他examples/dataview/pagination.typescript.tsx3.4 KB
- 其他examples/dataview/sorting.basic.jsx120 B
- 其他examples/dataview/sorting.typescript.tsx4.5 KB
- 其他examples/dataview/tailwind.theming.basic.jsx1.6 KB
- 其他examples/deferredcontent/basic.basic.jsx169 B
- 其他examples/deferredcontent/basic.typescript.tsx826 B
- 其他examples/deferredcontent/datatable.basic.jsx335 B
- 其他examples/deferredcontent/datatable.typescript.tsx1.3 KB
- 其他examples/deferredcontent/import.basic.jsx62 B
- 其他examples/dialog/basic.basic.jsx735 B
- 其他examples/dialog/basic.typescript.tsx1.1 KB
- 其他examples/dialog/footer.basic.jsx758 B
- 其他examples/dialog/footer.typescript.tsx1.4 KB
- 其他examples/dialog/headless.basic.jsx447 B
- 其他examples/dialog/headless.typescript.tsx6.2 KB
- 其他examples/dialog/import.basic.jsx44 B
- 其他examples/dialog/longcontent.basic.jsx4.8 KB
- 其他examples/dialog/longcontent.typescript.tsx5.5 KB
- 其他examples/dialog/maximizable.basic.jsx747 B
- 其他examples/dialog/maximizable.typescript.tsx1.2 KB
- 其他examples/dialog/position.basic.jsx2.1 KB
- 其他examples/dialog/position.typescript.tsx3.1 KB
- 其他examples/dialog/responsive.basic.jsx791 B
- 其他examples/dialog/responsive.typescript.tsx1.2 KB
- 其他examples/dialog/tailwind.theming.basic.jsx4.2 KB
- 其他examples/dialog/template.basic.jsx735 B
- 其他examples/dialog/template.typescript.tsx1.7 KB
- 其他examples/dialog/withoutmodal.basic.jsx735 B
- 其他examples/dialog/withoutmodal.typescript.tsx1.2 KB
- 其他examples/divider/basic.basic.jsx1.8 KB
- 许可证LICENSE1.1 KB
- 其他NOTICE1.4 KB
- 参考文档README.md6.0 KB
03 SKILL.md 正文
PrimeReact v10
What is actually installed here
!`node -p "const fs=require('fs'),pa=require('path');let d=process.cwd(),r=null;while(d!=='/'){if(fs.existsSync(pa.join(d,'node_modules/primereact'))){r=pa.join(d,'node_modules/primereact');break}d=pa.dirname(d)}const j=f=>{try{return JSON.parse(fs.readFileSync(f,'utf8'))}catch(e){return{}}};const app=r?j(pa.join(r,'../../package.json')):{};const dep={...(app.dependencies||{}),...(app.devDependencies||{})};JSON.stringify(r?{installed:j(pa.join(r,'package.json')).version||null,declared:dep.primereact||null,react:dep.react||null,primeicons:dep.primeicons||null}:{installed:null,note:'no primereact resolved from '+process.cwd()},null,2)" 2>/dev/null || echo '{"installed":null,"note":"node unavailable or errored"}'`
Read installed before doing anything else. It is the real version on disk, which
beats the version anyone believes is in use.
installedstarts with10.- this skill applies. Proceed.installedstarts with11.or higher - this skill does NOT apply. Say so and stop using it; its component names are wrong for that project.installedisnull- dependencies may not be installed, or you are not in the project directory. Ask before assuming a version; do not guess from memory.
Never propose upgrading to v11
PrimeReact relicensed at v11. This is verifiable from the published packages:
primereact@10.9.8 declares MIT, and primereact@11.x declares
SEE LICENSE IN LICENSE.md, whose text reads "This package is part of PrimeUI, a
family of commercial UI libraries" and "A valid license key is required to use
this software." The free Community tier requires meeting all of: under $1M annual
revenue, fewer than 5 developers, fewer than 10 employees, under $3M outside
funding.
10.9.8 is the last MIT release. A team on v10 is very often there on purpose. Suggesting an upgrade proposes attaching a license obligation and a per-developer cost to their company, so do not raise it as a fix, a modernization, or an aside. If a user explicitly asks about upgrading, tell them about the license first.
Where the truth lives
Work down this list. Stop at the first source that answers the question.
1. The installed type declarations. node_modules/primereact/<component>/<component>.d.ts
is version-exact by construction, because it is the copy the project compiles
against. Every prop carries JSDoc and @defaultValue. Use the bundled script
rather than reading whole files, since DataTable alone is 2069 lines:
The script lives in this skill's directory, and your working directory is the
user's project, so resolve it once per session and reuse the variable. A bare
scripts/pr10.sh will not be found.
PR10=$(ls -d ~/.claude/skills/primereact-v10/scripts/pr10.sh \
.claude/skills/primereact-v10/scripts/pr10.sh 2>/dev/null | head -1)
bash "$PR10" version # what is installed, and where
bash "$PR10" list # all 116 shipped modules
bash "$PR10" find switch # locate a module by partial name
bash "$PR10" props InputSwitch # the Props interface, with JSDoc
bash "$PR10" prop Button severity # one prop, its doc and its default
bash "$PR10" events DataTable # only the callback props
bash "$PR10" raw Calendar # path, when you need to read it directly
Run these from inside the project, since the script walks up from the working
directory to find node_modules/primereact. If $PR10 comes back empty the skill
is installed somewhere else; read node_modules/primereact/<component>/<component>.d.ts
directly instead.
2. The v10 documentation site, for usage shape and accessibility requirements
that types cannot express. Component pages are https://v10.primereact.org/<module>/
with stable #import, #basic, and #accessibility anchors, plus global pages at
/theming/, /passthrough/, /configuration/, and /guides/accessibility/.
Note that /accessibility/ (without /guides/) returns HTTP 200 and is an empty
shell with no content, so it passes a link check while telling you nothing. The
real guide is at /guides/accessibility/.
The site returns 403 to normal fetch tooling and 200 to a browser user-agent, so read it with curl and do not conclude the docs are unreachable:
curl -sS -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 \
(KHTML, like Gecko) Chrome/126.0 Safari/537.36" -L "https://v10.primereact.org/dropdown/"
Never cite www.primereact.org or primereact.dev. Both now serve v11. This
matters more than it looks: the JSDoc inside the v10 .d.ts files links to
https://www.primereact.org/<component>/, so following a link you read in the
types lands you on v11 documentation for a v10 component.
3. The bundled examples, for usage shape without a network round trip.
examples/<module>/<section>.typescript.tsx is a complete, self-contained
component; <section>.basic.jsx is the bare JSX fragment. These are extracted from
the v10 showcase at tag 10.9.8 and verified byte-identical to what the docs site
serves, so they are the same code without the fetch.
These are files in this skill's directory; read them with the Read tool rather than a shell command, since your working directory is the project.
examples/_broken.json lists 17 snippets that do not parse. Those are upstream
defects that the docs site serves verbatim, so do not copy them.
4. The reference files in this skill, for the traps none of the above state. These exist because the types compile and the docs stay quiet while the runtime does something else.
Rules that prevent the common failures
Check the module name before importing it. v11 renamed or removed most of the
library, so more than half of what a model recalls does not exist here. Only 54 of
116 v10 module paths survive into v11. If you are about to write datepicker,
select, popover, tabs, toggleswitch, drawer, inputpassword,
inputtags, or textarea, stop: none of those exist in v10. The v10 names are
calendar, dropdown, overlaypanel, tabview, inputswitch, sidebar,
password, chips, and inputtextarea. Full tables in
version-delta.md.
Read the event payload before wiring onChange. PrimeReact does not follow the
DOM convention, the shape differs per component, and the declarations hide it
behind extends FormEvent so the types will not save you. Three that catch people:
- Checkbox puts the static
valueprop ine.value(defaulting tonull) and the new state ine.checked.onChange={e => setAgreed(e.value)}type-checks and silently setsnull. Usee.checked. - InputSwitch and ToggleButton have no
e.checkedat all, despite taking acheckedprop. The new state ise.value. Copying a Checkbox handler onto an InputSwitch silently writesundefined. - RadioButton is the opposite of Checkbox:
e.valueis the option's value, which is what a radio group wants, ande.checkedis alwaystrue.
Never generalize one component's payload to its neighbor. Check events.md, which lists every component's payload with the one correct expression.
Do not import primereact/resources/primereact.min.css. In v10 that file is
153 bytes containing only a deprecation comment: "The primereact[.min].css has
been deprecated. In order not to break existing projects, it is currently included
in the build as an empty file." Most tutorials online still tell you to import it.
What you actually need is a theme, and optionally primeicons. See
theming.md.
primeicons is optional. It is not a dependency or peer dependency of
primereact. v10 ships inline SVG icon components, so pi pi-* class names only
work if the project separately installs and imports primeicons. Check the
injected context above before using a pi pi-* string.
DataTable is composed of <Column> children in v10. Any DataTable snippet you
recall that configures columns through a prop rather than children is v11 and does
not apply. DataTable also decides between controlled and uncontrolled behavior
based on which handlers you pass, which has a specific silent-failure mode covered
in datatable.md.
Accessibility is a per-component contract. Many v10 components render an inner input that has no accessible name unless you supply one, and the docs state the requirement per component. See accessibility.md before shipping a form or a dialog.
Picking a component
| Need | v10 component | Module |
|---|---|---|
| Text input | InputText |
primereact/inputtext |
| Multi-line text | InputTextarea |
primereact/inputtextarea |
| Number, currency, spinner | InputNumber |
primereact/inputnumber |
| Password with strength meter | Password |
primereact/password |
| Masked input | InputMask |
primereact/inputmask |
| One-time code | InputOtp |
primereact/inputotp |
| Single select | Dropdown |
primereact/dropdown |
| Multi select | MultiSelect |
primereact/multiselect |
| Typeahead | AutoComplete |
primereact/autocomplete |
| Nested select | CascadeSelect |
primereact/cascadeselect |
| Select from a tree | TreeSelect |
primereact/treeselect |
| Always-visible list | ListBox |
primereact/listbox |
| On/off toggle | InputSwitch |
primereact/inputswitch |
| Checkbox, radio | Checkbox, RadioButton |
primereact/checkbox, /radiobutton |
| Segmented choice | SelectButton |
primereact/selectbutton |
| Tag entry | Chips |
primereact/chips |
| Date and time | Calendar |
primereact/calendar |
| Color | ColorPicker |
primereact/colorpicker |
| Slider, dial, stars | Slider, Knob, Rating |
primereact/slider, /knob, /rating |
| Rich text | Editor |
primereact/editor |
| Table with paging and sorting | DataTable + Column |
primereact/datatable, /column |
| Hierarchical table | TreeTable |
primereact/treetable |
| Card or list layout of records | DataView |
primereact/dataview |
| Tree | Tree |
primereact/tree |
| Reorder or transfer lists | OrderList, PickList |
primereact/orderlist, /picklist |
| Charts | Chart (wraps Chart.js) |
primereact/chart |
| Modal | Dialog |
primereact/dialog |
| Confirm | ConfirmDialog, ConfirmPopup |
primereact/confirmdialog, /confirmpopup |
| Edge overlay panel | Sidebar (NOT Drawer) |
primereact/sidebar |
| Anchored floating panel | OverlayPanel |
primereact/overlaypanel |
| Tooltip | Tooltip |
primereact/tooltip |
| Tabs | TabView + TabPanel |
primereact/tabview |
| Accordion | Accordion + AccordionTab |
primereact/accordion |
| Collapsible panel | Panel, Fieldset |
primereact/panel, /fieldset |
| Wizard | Steps, Stepper |
primereact/steps, /stepper |
| Menus | Menu, Menubar, TieredMenu, ContextMenu, MegaMenu, PanelMenu, SlideMenu |
primereact/<name> |
| Toast notifications | Toast |
primereact/toast |
| Inline messages | Message, Messages |
primereact/message, /messages |
| Upload | FileUpload |
primereact/fileupload |
| Loading | ProgressBar, ProgressSpinner, Skeleton, BlockUI |
primereact/<name> |
| Large lists | VirtualScroller |
primereact/virtualscroller |
Run bash "$PR10" list for the complete set, and see
components.md for the full inventory grouped the way
the documentation groups it.
Workflow
- Read the injected version above. Confirm it is 10.x before continuing.
- Confirm the component exists with
pr10.sh find <name>rather than trusting recall, especially for anything in the rename table. - Read the real props with
pr10.sh props <component>before writing them. Guessing a prop name is the most common way to produce code that compiles in the editor and fails at runtime. - Read the event payload in events.md before writing
any
onChange,onSelect, oronPagehandler. - Check the accessibility contract for the component in accessibility.md.
- Match the project's existing conventions. Look at how sibling components in the repo import themes, structure forms, and handle state, and follow that rather than introducing a second pattern.
- Verify against the docs at
v10.primereact.orgwhen usage shape is unclear, using the curl invocation above.
Reference files
- version-delta.md - what v11 renamed and removed, the v11-only names to never write, and why the v10 pin is deliberate
- components.md - the full v10 inventory by category, with doc URLs and declaration paths
- events.md - the
onChangepayload taxonomy, verified at each component's payload construction site - datatable.md - DataTable, Column, paging, sorting, filtering, selection, and the controlled-state failure mode
- theming.md - theme imports,
PrimeReactProvider, PassThrough (pt), CSS layer ordering with Tailwind - accessibility.md - per-component requirements and the global guide
- gotchas.md - verified runtime surprises that the types and docs do not tell you
04 同仓库更多 Skills
autopilot
Run the new-work flow, idea or board item to reviewed code, with nobody watching.
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
to-tickets
Break a plan, spec, or the current conversation into tracer-bullet tickets grouped into the fewest PRs, each ticket with its blocking edges and first red test, saved as one local file per ticket.
to-spec
Turn the current conversation into a spec saved locally as the reference the agents build from: no interview, just synthesis of what you've already discussed.
teach
Teach the user a new skill or concept, within this workspace.
tdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.