@primereact/mcp 11.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +45 -0
- package/README.md +94 -0
- package/data/llms/headless/add-ons/introduction.md +16 -0
- package/data/llms/headless/components/accordion/api.json +252 -0
- package/data/llms/headless/components/accordion.md +196 -0
- package/data/llms/headless/components/animateonscroll/api.json +88 -0
- package/data/llms/headless/components/animateonscroll.md +141 -0
- package/data/llms/headless/components/autocomplete/api.json +787 -0
- package/data/llms/headless/components/autocomplete.md +249 -0
- package/data/llms/headless/components/avatar/api.json +154 -0
- package/data/llms/headless/components/avatar.md +149 -0
- package/data/llms/headless/components/badge/api.json +68 -0
- package/data/llms/headless/components/badge.md +150 -0
- package/data/llms/headless/components/breadcrumb/api.json +142 -0
- package/data/llms/headless/components/breadcrumb.md +149 -0
- package/data/llms/headless/components/button/api.json +62 -0
- package/data/llms/headless/components/button.md +73 -0
- package/data/llms/headless/components/card/api.json +36 -0
- package/data/llms/headless/components/card.md +96 -0
- package/data/llms/headless/components/carousel/api.json +793 -0
- package/data/llms/headless/components/carousel.md +196 -0
- package/data/llms/headless/components/checkbox/api.json +593 -0
- package/data/llms/headless/components/checkbox.md +184 -0
- package/data/llms/headless/components/chip/api.json +107 -0
- package/data/llms/headless/components/chip.md +141 -0
- package/data/llms/headless/components/collapsible/api.json +301 -0
- package/data/llms/headless/components/collapsible.md +136 -0
- package/data/llms/headless/components/compare/api.json +533 -0
- package/data/llms/headless/components/compare.md +142 -0
- package/data/llms/headless/components/contextmenu/api.json +495 -0
- package/data/llms/headless/components/contextmenu.md +282 -0
- package/data/llms/headless/components/datatable/api.json +1680 -0
- package/data/llms/headless/components/datatable.md +258 -0
- package/data/llms/headless/components/dataview/api.json +199 -0
- package/data/llms/headless/components/dataview.md +147 -0
- package/data/llms/headless/components/datepicker/api.json +2796 -0
- package/data/llms/headless/components/datepicker.md +456 -0
- package/data/llms/headless/components/dialog/api.json +626 -0
- package/data/llms/headless/components/dialog.md +280 -0
- package/data/llms/headless/components/divider/api.json +130 -0
- package/data/llms/headless/components/divider.md +92 -0
- package/data/llms/headless/components/drawer/api.json +425 -0
- package/data/llms/headless/components/drawer.md +220 -0
- package/data/llms/headless/components/fieldset/api.json +195 -0
- package/data/llms/headless/components/fieldset.md +154 -0
- package/data/llms/headless/components/fileupload/api.json +905 -0
- package/data/llms/headless/components/fileupload.md +323 -0
- package/data/llms/headless/components/floatlabel/api.json +36 -0
- package/data/llms/headless/components/floatlabel.md +19 -0
- package/data/llms/headless/components/fluid/api.json +36 -0
- package/data/llms/headless/components/fluid.md +19 -0
- package/data/llms/headless/components/focustrap/api.json +135 -0
- package/data/llms/headless/components/focustrap.md +125 -0
- package/data/llms/headless/components/gallery/api.json +1349 -0
- package/data/llms/headless/components/gallery.md +355 -0
- package/data/llms/headless/components/iconfield/api.json +62 -0
- package/data/llms/headless/components/iconfield.md +19 -0
- package/data/llms/headless/components/iftalabel/api.json +62 -0
- package/data/llms/headless/components/iftalabel.md +19 -0
- package/data/llms/headless/components/inplace/api.json +340 -0
- package/data/llms/headless/components/inplace.md +153 -0
- package/data/llms/headless/components/inputcolor/api.json +469 -0
- package/data/llms/headless/components/inputcolor.md +253 -0
- package/data/llms/headless/components/inputgroup/api.json +62 -0
- package/data/llms/headless/components/inputgroup.md +19 -0
- package/data/llms/headless/components/inputnumber/api.json +554 -0
- package/data/llms/headless/components/inputnumber.md +167 -0
- package/data/llms/headless/components/inputotp/api.json +276 -0
- package/data/llms/headless/components/inputotp.md +130 -0
- package/data/llms/headless/components/inputpassword/api.json +180 -0
- package/data/llms/headless/components/inputpassword.md +117 -0
- package/data/llms/headless/components/inputtags/api.json +497 -0
- package/data/llms/headless/components/inputtags.md +298 -0
- package/data/llms/headless/components/inputtext/api.json +81 -0
- package/data/llms/headless/components/inputtext.md +109 -0
- package/data/llms/headless/components/knob/api.json +429 -0
- package/data/llms/headless/components/knob.md +151 -0
- package/data/llms/headless/components/label/api.json +62 -0
- package/data/llms/headless/components/label.md +19 -0
- package/data/llms/headless/components/listbox/api.json +814 -0
- package/data/llms/headless/components/listbox.md +194 -0
- package/data/llms/headless/components/menu/api.json +1247 -0
- package/data/llms/headless/components/menu.md +283 -0
- package/data/llms/headless/components/message/api.json +131 -0
- package/data/llms/headless/components/message.md +143 -0
- package/data/llms/headless/components/metergroup/api.json +266 -0
- package/data/llms/headless/components/metergroup.md +129 -0
- package/data/llms/headless/components/motion/api.json +237 -0
- package/data/llms/headless/components/motion.md +160 -0
- package/data/llms/headless/components/navigationmenu/api.json +220 -0
- package/data/llms/headless/components/navigationmenu.md +166 -0
- package/data/llms/headless/components/orderlist/api.json +196 -0
- package/data/llms/headless/components/orderlist.md +221 -0
- package/data/llms/headless/components/organizationchart/api.json +372 -0
- package/data/llms/headless/components/organizationchart.md +254 -0
- package/data/llms/headless/components/paginator/api.json +311 -0
- package/data/llms/headless/components/paginator.md +187 -0
- package/data/llms/headless/components/panel/api.json +195 -0
- package/data/llms/headless/components/panel.md +150 -0
- package/data/llms/headless/components/picklist/api.json +293 -0
- package/data/llms/headless/components/picklist.md +270 -0
- package/data/llms/headless/components/popover/api.json +405 -0
- package/data/llms/headless/components/popover.md +301 -0
- package/data/llms/headless/components/portal/api.json +56 -0
- package/data/llms/headless/components/portal.md +102 -0
- package/data/llms/headless/components/positioner/api.json +165 -0
- package/data/llms/headless/components/positioner.md +181 -0
- package/data/llms/headless/components/progressbar/api.json +87 -0
- package/data/llms/headless/components/progressbar.md +122 -0
- package/data/llms/headless/components/progressspinner/api.json +337 -0
- package/data/llms/headless/components/progressspinner.md +128 -0
- package/data/llms/headless/components/radiobutton/api.json +569 -0
- package/data/llms/headless/components/radiobutton.md +195 -0
- package/data/llms/headless/components/rating/api.json +347 -0
- package/data/llms/headless/components/rating.md +181 -0
- package/data/llms/headless/components/scrollarea/api.json +730 -0
- package/data/llms/headless/components/scrollarea.md +232 -0
- package/data/llms/headless/components/select/api.json +829 -0
- package/data/llms/headless/components/select.md +262 -0
- package/data/llms/headless/components/sidebar/api.json +433 -0
- package/data/llms/headless/components/sidebar.md +266 -0
- package/data/llms/headless/components/skeleton/api.json +68 -0
- package/data/llms/headless/components/skeleton.md +95 -0
- package/data/llms/headless/components/slider/api.json +559 -0
- package/data/llms/headless/components/slider.md +158 -0
- package/data/llms/headless/components/speeddial/api.json +459 -0
- package/data/llms/headless/components/speeddial.md +181 -0
- package/data/llms/headless/components/splitter/api.json +582 -0
- package/data/llms/headless/components/splitter.md +159 -0
- package/data/llms/headless/components/stepper/api.json +385 -0
- package/data/llms/headless/components/stepper.md +183 -0
- package/data/llms/headless/components/styleclass/api.json +134 -0
- package/data/llms/headless/components/styleclass.md +129 -0
- package/data/llms/headless/components/tabs/api.json +336 -0
- package/data/llms/headless/components/tabs.md +158 -0
- package/data/llms/headless/components/tag/api.json +62 -0
- package/data/llms/headless/components/tag.md +121 -0
- package/data/llms/headless/components/terminal/api.json +117 -0
- package/data/llms/headless/components/terminal.md +183 -0
- package/data/llms/headless/components/textarea/api.json +81 -0
- package/data/llms/headless/components/textarea.md +110 -0
- package/data/llms/headless/components/timeline/api.json +270 -0
- package/data/llms/headless/components/timeline.md +117 -0
- package/data/llms/headless/components/toast/api.json +455 -0
- package/data/llms/headless/components/toast.md +277 -0
- package/data/llms/headless/components/togglebutton/api.json +357 -0
- package/data/llms/headless/components/togglebutton.md +183 -0
- package/data/llms/headless/components/toggleswitch/api.json +326 -0
- package/data/llms/headless/components/toggleswitch.md +164 -0
- package/data/llms/headless/components/toolbar/api.json +68 -0
- package/data/llms/headless/components/toolbar.md +96 -0
- package/data/llms/headless/components/tooltip/api.json +478 -0
- package/data/llms/headless/components/tooltip.md +233 -0
- package/data/llms/headless/components/tree/api.json +1297 -0
- package/data/llms/headless/components/tree.md +297 -0
- package/data/llms/headless/components/treetable/api.json +1680 -0
- package/data/llms/headless/components/treetable.md +177 -0
- package/data/llms/headless/guides/ai/llms.md +25 -0
- package/data/llms/headless/guides/installation.md +126 -0
- package/data/llms/headless/guides/introduction.md +20 -0
- package/data/llms/headless/guides/misc/accessibility.md +228 -0
- package/data/llms/headless/llms.md +25 -0
- package/data/llms/headless/resources/introduction.md +15 -0
- package/data/llms/hooks/gettingstarted/introduction.md +34 -0
- package/data/llms/hooks/gettingstarted/setup.md +54 -0
- package/data/llms/hooks/use-attr-selector.md +25 -0
- package/data/llms/hooks/use-controlled-state.md +31 -0
- package/data/llms/hooks/use-event-listener.md +37 -0
- package/data/llms/hooks/use-filter.md +312 -0
- package/data/llms/hooks/use-hot-key.md +40 -0
- package/data/llms/hooks/use-id.md +24 -0
- package/data/llms/hooks/use-intersection-observer.md +42 -0
- package/data/llms/hooks/use-is-mobile.md +24 -0
- package/data/llms/hooks/use-key-filter.md +139 -0
- package/data/llms/hooks/use-local-storage.md +28 -0
- package/data/llms/hooks/use-mask.md +53 -0
- package/data/llms/hooks/use-match-media.md +28 -0
- package/data/llms/hooks/use-mount-effect.md +25 -0
- package/data/llms/hooks/use-mounted.md +36 -0
- package/data/llms/hooks/use-number-formatter.md +48 -0
- package/data/llms/hooks/use-presence.md +44 -0
- package/data/llms/hooks/use-previous.md +28 -0
- package/data/llms/hooks/use-props.md +37 -0
- package/data/llms/hooks/use-queue-task.md +29 -0
- package/data/llms/hooks/use-scrolltop.md +87 -0
- package/data/llms/hooks/use-sortable-list.md +226 -0
- package/data/llms/hooks/use-tree-filter.md +216 -0
- package/data/llms/hooks/use-unmount-effect.md +23 -0
- package/data/llms/hooks/use-update-effect.md +27 -0
- package/data/llms/hooks/use-view-transition.md +31 -0
- package/data/llms/hooks/use-visibility-change.md +30 -0
- package/data/llms/llms-full.txt +125291 -0
- package/data/llms/llms.txt +379 -0
- package/data/llms/manifest.json +12409 -0
- package/data/llms/mcp-data.json +14481 -0
- package/data/llms/primitive/add-ons/introduction.md +16 -0
- package/data/llms/primitive/components/accordion/api.json +1411 -0
- package/data/llms/primitive/components/accordion.md +231 -0
- package/data/llms/primitive/components/animateonscroll/api.json +193 -0
- package/data/llms/primitive/components/animateonscroll.md +91 -0
- package/data/llms/primitive/components/autocomplete/api.json +3167 -0
- package/data/llms/primitive/components/autocomplete.md +344 -0
- package/data/llms/primitive/components/avatar/api.json +703 -0
- package/data/llms/primitive/components/avatar.md +134 -0
- package/data/llms/primitive/components/badge/api.json +363 -0
- package/data/llms/primitive/components/badge.md +118 -0
- package/data/llms/primitive/components/breadcrumb/api.json +1162 -0
- package/data/llms/primitive/components/breadcrumb.md +196 -0
- package/data/llms/primitive/components/button/api.json +246 -0
- package/data/llms/primitive/components/button.md +114 -0
- package/data/llms/primitive/components/buttongroup/api.json +168 -0
- package/data/llms/primitive/components/buttongroup.md +43 -0
- package/data/llms/primitive/components/card/api.json +1252 -0
- package/data/llms/primitive/components/card.md +159 -0
- package/data/llms/primitive/components/carousel/api.json +1374 -0
- package/data/llms/primitive/components/carousel.md +220 -0
- package/data/llms/primitive/components/checkbox/api.json +697 -0
- package/data/llms/primitive/components/checkbox.md +160 -0
- package/data/llms/primitive/components/checkboxgroup/api.json +252 -0
- package/data/llms/primitive/components/checkboxgroup.md +58 -0
- package/data/llms/primitive/components/chip/api.json +853 -0
- package/data/llms/primitive/components/chip.md +135 -0
- package/data/llms/primitive/components/collapsible/api.json +581 -0
- package/data/llms/primitive/components/collapsible.md +133 -0
- package/data/llms/primitive/components/compare/api.json +909 -0
- package/data/llms/primitive/components/compare.md +156 -0
- package/data/llms/primitive/components/contextmenu/api.json +3454 -0
- package/data/llms/primitive/components/contextmenu.md +483 -0
- package/data/llms/primitive/components/datatable/api.json +7832 -0
- package/data/llms/primitive/components/datatable.md +561 -0
- package/data/llms/primitive/components/dataview/api.json +819 -0
- package/data/llms/primitive/components/dataview.md +163 -0
- package/data/llms/primitive/components/datepicker/api.json +9055 -0
- package/data/llms/primitive/components/datepicker.md +760 -0
- package/data/llms/primitive/components/dialog/api.json +2491 -0
- package/data/llms/primitive/components/dialog.md +276 -0
- package/data/llms/primitive/components/divider/api.json +214 -0
- package/data/llms/primitive/components/divider.md +96 -0
- package/data/llms/primitive/components/drawer/api.json +1879 -0
- package/data/llms/primitive/components/drawer.md +220 -0
- package/data/llms/primitive/components/fieldset/api.json +1116 -0
- package/data/llms/primitive/components/fieldset.md +183 -0
- package/data/llms/primitive/components/fileupload/api.json +2445 -0
- package/data/llms/primitive/components/fileupload.md +282 -0
- package/data/llms/primitive/components/floatlabel/api.json +176 -0
- package/data/llms/primitive/components/floatlabel.md +47 -0
- package/data/llms/primitive/components/focustrap/api.json +241 -0
- package/data/llms/primitive/components/focustrap.md +93 -0
- package/data/llms/primitive/components/gallery/api.json +3622 -0
- package/data/llms/primitive/components/gallery.md +387 -0
- package/data/llms/primitive/components/iconfield/api.json +322 -0
- package/data/llms/primitive/components/iconfield.md +53 -0
- package/data/llms/primitive/components/iftalabel/api.json +177 -0
- package/data/llms/primitive/components/iftalabel.md +47 -0
- package/data/llms/primitive/components/inplace/api.json +783 -0
- package/data/llms/primitive/components/inplace.md +141 -0
- package/data/llms/primitive/components/inputcolor/api.json +2211 -0
- package/data/llms/primitive/components/inputcolor.md +295 -0
- package/data/llms/primitive/components/inputnumber/api.json +469 -0
- package/data/llms/primitive/components/inputnumber.md +99 -0
- package/data/llms/primitive/components/inputotp/api.json +469 -0
- package/data/llms/primitive/components/inputotp.md +121 -0
- package/data/llms/primitive/components/inputpassword/api.json +278 -0
- package/data/llms/primitive/components/inputpassword.md +84 -0
- package/data/llms/primitive/components/inputtags/api.json +407 -0
- package/data/llms/primitive/components/inputtags.md +243 -0
- package/data/llms/primitive/components/inputtext/api.json +207 -0
- package/data/llms/primitive/components/inputtext.md +81 -0
- package/data/llms/primitive/components/knob/api.json +841 -0
- package/data/llms/primitive/components/knob.md +148 -0
- package/data/llms/primitive/components/label/api.json +177 -0
- package/data/llms/primitive/components/label.md +44 -0
- package/data/llms/primitive/components/listbox/api.json +1741 -0
- package/data/llms/primitive/components/listbox.md +206 -0
- package/data/llms/primitive/components/menu/api.json +3836 -0
- package/data/llms/primitive/components/menu.md +479 -0
- package/data/llms/primitive/components/message/api.json +863 -0
- package/data/llms/primitive/components/message.md +151 -0
- package/data/llms/primitive/components/metergroup/api.json +1222 -0
- package/data/llms/primitive/components/metergroup.md +209 -0
- package/data/llms/primitive/components/motion.md +112 -0
- package/data/llms/primitive/components/navigationmenu/api.json +298 -0
- package/data/llms/primitive/components/navigationmenu.md +184 -0
- package/data/llms/primitive/components/organizationchart.md +133 -0
- package/data/llms/primitive/components/paginator/api.json +1637 -0
- package/data/llms/primitive/components/paginator.md +223 -0
- package/data/llms/primitive/components/panel/api.json +1270 -0
- package/data/llms/primitive/components/panel.md +186 -0
- package/data/llms/primitive/components/popover/api.json +2281 -0
- package/data/llms/primitive/components/popover.md +277 -0
- package/data/llms/primitive/components/portal/api.json +176 -0
- package/data/llms/primitive/components/portal.md +79 -0
- package/data/llms/primitive/components/progressbar/api.json +857 -0
- package/data/llms/primitive/components/progressbar.md +153 -0
- package/data/llms/primitive/components/progressspinner/api.json +725 -0
- package/data/llms/primitive/components/progressspinner.md +133 -0
- package/data/llms/primitive/components/radiobutton/api.json +929 -0
- package/data/llms/primitive/components/radiobutton.md +201 -0
- package/data/llms/primitive/components/rating/api.json +878 -0
- package/data/llms/primitive/components/rating.md +160 -0
- package/data/llms/primitive/components/scrollarea/api.json +1187 -0
- package/data/llms/primitive/components/scrollarea.md +255 -0
- package/data/llms/primitive/components/select/api.json +3167 -0
- package/data/llms/primitive/components/select.md +351 -0
- package/data/llms/primitive/components/sidebar/api.json +3699 -0
- package/data/llms/primitive/components/sidebar.md +444 -0
- package/data/llms/primitive/components/skeleton/api.json +213 -0
- package/data/llms/primitive/components/skeleton.md +80 -0
- package/data/llms/primitive/components/slider/api.json +1066 -0
- package/data/llms/primitive/components/slider.md +161 -0
- package/data/llms/primitive/components/speeddial/api.json +1002 -0
- package/data/llms/primitive/components/speeddial.md +197 -0
- package/data/llms/primitive/components/splitter/api.json +901 -0
- package/data/llms/primitive/components/splitter.md +137 -0
- package/data/llms/primitive/components/stepper/api.json +2102 -0
- package/data/llms/primitive/components/stepper.md +253 -0
- package/data/llms/primitive/components/styleclass.md +399 -0
- package/data/llms/primitive/components/tabs/api.json +1705 -0
- package/data/llms/primitive/components/tabs.md +200 -0
- package/data/llms/primitive/components/tag/api.json +189 -0
- package/data/llms/primitive/components/tag.md +100 -0
- package/data/llms/primitive/components/terminal/api.json +1709 -0
- package/data/llms/primitive/components/terminal.md +227 -0
- package/data/llms/primitive/components/textarea/api.json +213 -0
- package/data/llms/primitive/components/textarea.md +83 -0
- package/data/llms/primitive/components/timeline/api.json +1180 -0
- package/data/llms/primitive/components/timeline.md +185 -0
- package/data/llms/primitive/components/toast/api.json +2102 -0
- package/data/llms/primitive/components/toast.md +291 -0
- package/data/llms/primitive/components/togglebutton/api.json +433 -0
- package/data/llms/primitive/components/togglebutton.md +161 -0
- package/data/llms/primitive/components/togglebuttongroup/api.json +276 -0
- package/data/llms/primitive/components/togglebuttongroup.md +61 -0
- package/data/llms/primitive/components/toggleswitch/api.json +681 -0
- package/data/llms/primitive/components/toggleswitch.md +149 -0
- package/data/llms/primitive/components/toolbar/api.json +646 -0
- package/data/llms/primitive/components/toolbar.md +126 -0
- package/data/llms/primitive/components/tooltip/api.json +1534 -0
- package/data/llms/primitive/components/tooltip.md +202 -0
- package/data/llms/primitive/components/tree/api.json +2952 -0
- package/data/llms/primitive/components/tree.md +292 -0
- package/data/llms/primitive/components/treetable.md +187 -0
- package/data/llms/primitive/components/visuallyhidden/api.json +186 -0
- package/data/llms/primitive/components/visuallyhidden.md +87 -0
- package/data/llms/primitive/guides/ai/llms.md +25 -0
- package/data/llms/primitive/guides/icons/customicons.md +47 -0
- package/data/llms/primitive/guides/icons/primeicons.md +112 -0
- package/data/llms/primitive/guides/installation.md +115 -0
- package/data/llms/primitive/guides/introduction.md +20 -0
- package/data/llms/primitive/guides/misc/accessibility.md +215 -0
- package/data/llms/primitive/guides/misc/passthrough.md +95 -0
- package/data/llms/primitive/guides/misc/rtl.md +27 -0
- package/data/llms/primitive/llms.md +25 -0
- package/data/llms/primitive/resources/introduction.md +15 -0
- package/data/llms/styled/add-ons/introduction.md +16 -0
- package/data/llms/styled/components/accordion.md +735 -0
- package/data/llms/styled/components/animateonscroll.md +264 -0
- package/data/llms/styled/components/autocomplete.md +1597 -0
- package/data/llms/styled/components/avatar.md +313 -0
- package/data/llms/styled/components/badge.md +213 -0
- package/data/llms/styled/components/breadcrumb.md +461 -0
- package/data/llms/styled/components/button/api.json +246 -0
- package/data/llms/styled/components/button.md +641 -0
- package/data/llms/styled/components/buttongroup.md +614 -0
- package/data/llms/styled/components/card.md +228 -0
- package/data/llms/styled/components/carousel.md +388 -0
- package/data/llms/styled/components/checkbox.md +329 -0
- package/data/llms/styled/components/checkboxgroup.md +619 -0
- package/data/llms/styled/components/chip.md +300 -0
- package/data/llms/styled/components/compare.md +271 -0
- package/data/llms/styled/components/contextmenu.md +550 -0
- package/data/llms/styled/components/datatable.md +8259 -0
- package/data/llms/styled/components/dataview.md +907 -0
- package/data/llms/styled/components/datepicker.md +2807 -0
- package/data/llms/styled/components/dialog.md +1047 -0
- package/data/llms/styled/components/divider.md +207 -0
- package/data/llms/styled/components/drawer.md +470 -0
- package/data/llms/styled/components/fieldset.md +334 -0
- package/data/llms/styled/components/fileupload.md +747 -0
- package/data/llms/styled/components/floatlabel/api.json +210 -0
- package/data/llms/styled/components/floatlabel.md +231 -0
- package/data/llms/styled/components/fluid/api.json +204 -0
- package/data/llms/styled/components/fluid.md +177 -0
- package/data/llms/styled/components/focustrap.md +203 -0
- package/data/llms/styled/components/gallery.md +553 -0
- package/data/llms/styled/components/iconfield/api.json +382 -0
- package/data/llms/styled/components/iconfield.md +385 -0
- package/data/llms/styled/components/iftalabel/api.json +237 -0
- package/data/llms/styled/components/iftalabel.md +158 -0
- package/data/llms/styled/components/inplace.md +312 -0
- package/data/llms/styled/components/inputcolor.md +674 -0
- package/data/llms/styled/components/inputgroup/api.json +399 -0
- package/data/llms/styled/components/inputgroup.md +604 -0
- package/data/llms/styled/components/inputmask.md +282 -0
- package/data/llms/styled/components/inputnumber.md +563 -0
- package/data/llms/styled/components/inputotp.md +335 -0
- package/data/llms/styled/components/inputpassword.md +630 -0
- package/data/llms/styled/components/inputtags.md +727 -0
- package/data/llms/styled/components/inputtext.md +190 -0
- package/data/llms/styled/components/keyfilter.md +289 -0
- package/data/llms/styled/components/knob.md +305 -0
- package/data/llms/styled/components/label/api.json +237 -0
- package/data/llms/styled/components/label.md +224 -0
- package/data/llms/styled/components/listbox.md +807 -0
- package/data/llms/styled/components/menu.md +1175 -0
- package/data/llms/styled/components/message.md +570 -0
- package/data/llms/styled/components/metergroup.md +449 -0
- package/data/llms/styled/components/navigationmenu.md +926 -0
- package/data/llms/styled/components/orderlist.md +519 -0
- package/data/llms/styled/components/organizationchart/api.json +1457 -0
- package/data/llms/styled/components/organizationchart.md +791 -0
- package/data/llms/styled/components/overlaymanager.md +519 -0
- package/data/llms/styled/components/paginator.md +506 -0
- package/data/llms/styled/components/panel.md +394 -0
- package/data/llms/styled/components/picklist.md +1004 -0
- package/data/llms/styled/components/popover.md +372 -0
- package/data/llms/styled/components/progressbar.md +438 -0
- package/data/llms/styled/components/progressspinner.md +128 -0
- package/data/llms/styled/components/radiobutton.md +488 -0
- package/data/llms/styled/components/rating/api.json +766 -0
- package/data/llms/styled/components/rating.md +518 -0
- package/data/llms/styled/components/scrollarea.md +627 -0
- package/data/llms/styled/components/select.md +2122 -0
- package/data/llms/styled/components/sidebar.md +1587 -0
- package/data/llms/styled/components/skeleton.md +226 -0
- package/data/llms/styled/components/slider.md +453 -0
- package/data/llms/styled/components/speeddial.md +723 -0
- package/data/llms/styled/components/splitter.md +536 -0
- package/data/llms/styled/components/stepper.md +614 -0
- package/data/llms/styled/components/tabs.md +543 -0
- package/data/llms/styled/components/tag.md +263 -0
- package/data/llms/styled/components/terminal.md +543 -0
- package/data/llms/styled/components/textarea.md +257 -0
- package/data/llms/styled/components/timeline.md +620 -0
- package/data/llms/styled/components/toast.md +1013 -0
- package/data/llms/styled/components/togglebutton.md +287 -0
- package/data/llms/styled/components/togglebuttongroup.md +328 -0
- package/data/llms/styled/components/toggleswitch.md +262 -0
- package/data/llms/styled/components/toolbar.md +187 -0
- package/data/llms/styled/components/tooltip.md +430 -0
- package/data/llms/styled/components/tree.md +1386 -0
- package/data/llms/styled/components/treetable.md +6842 -0
- package/data/llms/styled/guides/ai/llms.md +25 -0
- package/data/llms/styled/guides/configuration.md +151 -0
- package/data/llms/styled/guides/icons/customicons.md +47 -0
- package/data/llms/styled/guides/icons/primeicons.md +112 -0
- package/data/llms/styled/guides/installation/astro.md +97 -0
- package/data/llms/styled/guides/installation/manual.md +3 -0
- package/data/llms/styled/guides/installation/nextjs.md +129 -0
- package/data/llms/styled/guides/installation/react-router.md +88 -0
- package/data/llms/styled/guides/installation/tanstack.md +92 -0
- package/data/llms/styled/guides/installation/vite.md +91 -0
- package/data/llms/styled/guides/installation.md +42 -0
- package/data/llms/styled/guides/introduction.md +20 -0
- package/data/llms/styled/guides/misc/accessibility.md +211 -0
- package/data/llms/styled/guides/misc/animations.md +389 -0
- package/data/llms/styled/guides/misc/passthrough.md +95 -0
- package/data/llms/styled/guides/misc/rtl.md +27 -0
- package/data/llms/styled/guides/theming/styled.md +779 -0
- package/data/llms/styled/guides/theming/tailwind.md +473 -0
- package/data/llms/styled/guides/theming/unstyled.md +115 -0
- package/data/llms/styled/resources/introduction.md +15 -0
- package/data/llms/tailwind/add-ons/introduction.md +16 -0
- package/data/llms/tailwind/components/accordion.md +383 -0
- package/data/llms/tailwind/components/autocomplete.md +1346 -0
- package/data/llms/tailwind/components/avatar.md +305 -0
- package/data/llms/tailwind/components/badge.md +207 -0
- package/data/llms/tailwind/components/breadcrumb.md +387 -0
- package/data/llms/tailwind/components/button/api.json +246 -0
- package/data/llms/tailwind/components/button.md +617 -0
- package/data/llms/tailwind/components/buttongroup.md +599 -0
- package/data/llms/tailwind/components/card.md +224 -0
- package/data/llms/tailwind/components/carousel.md +329 -0
- package/data/llms/tailwind/components/checkbox.md +179 -0
- package/data/llms/tailwind/components/checkboxgroup.md +279 -0
- package/data/llms/tailwind/components/chip.md +304 -0
- package/data/llms/tailwind/components/compare.md +295 -0
- package/data/llms/tailwind/components/contextmenu.md +415 -0
- package/data/llms/tailwind/components/datatable.md +4062 -0
- package/data/llms/tailwind/components/dataview.md +864 -0
- package/data/llms/tailwind/components/datepicker.md +823 -0
- package/data/llms/tailwind/components/dialog.md +1216 -0
- package/data/llms/tailwind/components/divider.md +205 -0
- package/data/llms/tailwind/components/drawer.md +500 -0
- package/data/llms/tailwind/components/fieldset.md +326 -0
- package/data/llms/tailwind/components/fluid.md +117 -0
- package/data/llms/tailwind/components/iconfield.md +197 -0
- package/data/llms/tailwind/components/inplace.md +324 -0
- package/data/llms/tailwind/components/inputcolor.md +493 -0
- package/data/llms/tailwind/components/inputgroup.md +375 -0
- package/data/llms/tailwind/components/inputnumber.md +463 -0
- package/data/llms/tailwind/components/inputotp.md +255 -0
- package/data/llms/tailwind/components/inputpassword.md +543 -0
- package/data/llms/tailwind/components/inputtext.md +141 -0
- package/data/llms/tailwind/components/label.md +100 -0
- package/data/llms/tailwind/components/listbox.md +886 -0
- package/data/llms/tailwind/components/menu.md +1049 -0
- package/data/llms/tailwind/components/message.md +575 -0
- package/data/llms/tailwind/components/metergroup.md +510 -0
- package/data/llms/tailwind/components/navigationmenu.md +528 -0
- package/data/llms/tailwind/components/overlaymanager.md +567 -0
- package/data/llms/tailwind/components/paginator.md +306 -0
- package/data/llms/tailwind/components/panel.md +395 -0
- package/data/llms/tailwind/components/popover.md +424 -0
- package/data/llms/tailwind/components/progressbar.md +313 -0
- package/data/llms/tailwind/components/radiobutton.md +366 -0
- package/data/llms/tailwind/components/rating.md +300 -0
- package/data/llms/tailwind/components/scrollarea.md +638 -0
- package/data/llms/tailwind/components/select.md +1220 -0
- package/data/llms/tailwind/components/sidebar.md +1511 -0
- package/data/llms/tailwind/components/skeleton.md +236 -0
- package/data/llms/tailwind/components/slider.md +291 -0
- package/data/llms/tailwind/components/splitter.md +546 -0
- package/data/llms/tailwind/components/tabs.md +462 -0
- package/data/llms/tailwind/components/tag.md +255 -0
- package/data/llms/tailwind/components/textarea.md +170 -0
- package/data/llms/tailwind/components/timeline.md +656 -0
- package/data/llms/tailwind/components/toast.md +246 -0
- package/data/llms/tailwind/components/togglebutton.md +264 -0
- package/data/llms/tailwind/components/togglebuttongroup.md +262 -0
- package/data/llms/tailwind/components/toggleswitch.md +203 -0
- package/data/llms/tailwind/components/toolbar.md +192 -0
- package/data/llms/tailwind/components/tooltip.md +449 -0
- package/data/llms/tailwind/guides/ai/llms.md +25 -0
- package/data/llms/tailwind/guides/icons/customicons.md +47 -0
- package/data/llms/tailwind/guides/icons/primeicons.md +112 -0
- package/data/llms/tailwind/guides/installation/astro.md +165 -0
- package/data/llms/tailwind/guides/installation/manual.md +3 -0
- package/data/llms/tailwind/guides/installation/nextjs.md +169 -0
- package/data/llms/tailwind/guides/installation/react-router.md +157 -0
- package/data/llms/tailwind/guides/installation/tanstack.md +161 -0
- package/data/llms/tailwind/guides/installation/vite.md +160 -0
- package/data/llms/tailwind/guides/installation.md +42 -0
- package/data/llms/tailwind/guides/introduction.md +20 -0
- package/data/llms/tailwind/guides/misc/accessibility.md +205 -0
- package/data/llms/tailwind/guides/misc/passthrough.md +95 -0
- package/data/llms/tailwind/guides/misc/rtl.md +27 -0
- package/data/llms/tailwind/guides/theming/guide.md +179 -0
- package/data/llms/tailwind/guides/theming.md +191 -0
- package/data/llms/tailwind/llms.md +25 -0
- package/data/llms/tailwind/resources/introduction.md +15 -0
- package/data/manifest.json +12409 -0
- package/data/mcp-data.json +14481 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +2 -0
- package/package.json +61 -0
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
# Tailwind CSS
|
|
2
|
+
|
|
3
|
+
Integration between PrimeReact and Tailwind CSS both in styled and unstyled modes.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
Tailwind CSS is a popular CSS framework based on a utility-first design. The core provides flexible CSS classes with predefined CSS rules to build your own UI elements. For example, instead of an opinionated `btn` className as in
|
|
8
|
+
Bootstrap, Tailwind offers primitive classes like `bg-blue-500`, `rounded` and `p-4` to apply a button.
|
|
9
|
+
|
|
10
|
+
Tailwind is an outstanding CSS library, however it lacks a true comprehensive UI suite when combined with Vue.js, this is where PrimeReact comes in by providing a wide range of highly accessible and feature rich UI component library. The
|
|
11
|
+
core of PrimeReact does not depend on Tailwind CSS, instead we provide the necessary integration points such as the primeui tailwind plugin and the Tailwind version for the unstyled mode.
|
|
12
|
+
|
|
13
|
+
<DocNotification>
|
|
14
|
+
Tailwind CSS and PrimeReact can be used together via two main approaches. Simple approach is using Tailwind CSS _around_ PrimeReact components for layout purposes as demonstrated in the samples section below, the advanced approach takes the
|
|
15
|
+
integration a step further by allowing Tailwind CSS _within_ the component internals to style the entire UI suite in unstyled mode.
|
|
16
|
+
</DocNotification>
|
|
17
|
+
|
|
18
|
+
## Tailwind Theme
|
|
19
|
+
|
|
20
|
+
PrimeTek offers the Tailwind CSS version of the entire PrimeReact UI suite in unstyled mode based on the `@apply` directive with IntelliSense support. Visit the [Tailwind version of PrimeReact](https://tailwind.primereact.org) for the documentation, demos and additional resources.
|
|
21
|
+
|
|
22
|
+
<DocNotification>
|
|
23
|
+
Tailwind version of PrimeReact instead of the default styled mode is not tested with Tailwind v4. For the next-gen version of this project, we are building a new UI Component library based on the code ownership model where components are located
|
|
24
|
+
inside your project source instead of imported from npm. This new library is powered by Unstyled PrimeReact Core and Tailwind v4.
|
|
25
|
+
</DocNotification>
|
|
26
|
+
|
|
27
|
+
## Plugin
|
|
28
|
+
|
|
29
|
+
The [tailwindcss-primeui](https://www.npmjs.com/package/tailwindcss-primeui) is an official plugin by PrimeTek to provide first className integration between a Prime UI library like
|
|
30
|
+
PrimeReact and Tailwind CSS. It is designed to work both in styled and unstyled modes. In styled mode, for instance the semantic colors such as primary and surfaces are provided as Tailwind utilities e.g. `bg-primary`,
|
|
31
|
+
`text-surface-500`, `text-muted-color`.
|
|
32
|
+
|
|
33
|
+
If you haven't already done so, start by integrating Tailwind into your project. Detailed steps for this process can be found in the Tailwind [documentation](https://tailwindcss.com/).
|
|
34
|
+
After successfully installing Tailwind, proceed with the installation of the PrimeUI plugin. This single npm package comes with two libraries: the CSS version is compatible with Tailwind v4, while the JS version is designed for Tailwind
|
|
35
|
+
v3.
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm install tailwindcss-primeui
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Tailwind v4
|
|
42
|
+
|
|
43
|
+
In the CSS file that contains the tailwindcss import, add the `tailwindcss-primeui` import as well.
|
|
44
|
+
|
|
45
|
+
```css
|
|
46
|
+
@import 'tailwindcss';
|
|
47
|
+
|
|
48
|
+
@import 'tailwindcss-primeui';
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Tailwind v3
|
|
52
|
+
|
|
53
|
+
Use the plugins option in your Tailwind config file to configure the plugin.
|
|
54
|
+
|
|
55
|
+
```tsx
|
|
56
|
+
// tailwind.config.js
|
|
57
|
+
import PrimeUI from 'tailwindcss-primeui';
|
|
58
|
+
|
|
59
|
+
export default {
|
|
60
|
+
// ...
|
|
61
|
+
plugins: [PrimeUI]
|
|
62
|
+
};
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Extensions
|
|
66
|
+
|
|
67
|
+
The plugin extends the default configuration with a new set of utilities whose values are derived from the PrimeReact theme in use. All variants and breakpoints are supported e.g. `dark:sm:hover:bg-primary`.
|
|
68
|
+
|
|
69
|
+
| Class | Property |
|
|
70
|
+
| --------------------------- | ----------------------------------------- |
|
|
71
|
+
| `primary-[50-950]` | Primary color palette. |
|
|
72
|
+
| `surface-[0-950]` | Surface color palette. |
|
|
73
|
+
| `primary` | Default primary color. |
|
|
74
|
+
| `primary-contrast` | Default primary contrast color. |
|
|
75
|
+
| `primary-emphasis` | Default primary emphasis color. |
|
|
76
|
+
| `border-surface` | Default primary emphasis color. |
|
|
77
|
+
| `bg-emphasis` | Emphasis background e.g. hovered element. |
|
|
78
|
+
| `bg-highlight` | Highlight background. |
|
|
79
|
+
| `bg-highlight-emphasis` | Highlight background with emphasis. |
|
|
80
|
+
| `rounded-border` | Border radius. |
|
|
81
|
+
| `text-color` | Text color with emphasis. |
|
|
82
|
+
| `text-color-emphasis` | Default primary emphasis color. |
|
|
83
|
+
| `text-muted-color` | Secondary text color. |
|
|
84
|
+
| `text-muted-color-emphasis` | Secondary text color with emphasis. |
|
|
85
|
+
|
|
86
|
+
## Dark Mode
|
|
87
|
+
|
|
88
|
+
In styled mode, PrimeReact uses the `system` as the default `darkModeSelector` in theme configuration. If you have a dark mode switch in your application, ensure that `darkModeSelector` is aligned with the Tailwind dark
|
|
89
|
+
variant for seamless integration. Note that, this particular configuration isn't required if you're utilizing the default system color scheme.
|
|
90
|
+
|
|
91
|
+
Suppose that, the darkModeSelector is set as `my-app-dark` in PrimeReact.
|
|
92
|
+
|
|
93
|
+
```tsx showLineNumbers
|
|
94
|
+
import { StrictMode } from 'react';
|
|
95
|
+
import { createRoot } from 'react-dom/client';
|
|
96
|
+
import App from './App.tsx';
|
|
97
|
+
import { PrimeReactProvider } from '@primereact/core';
|
|
98
|
+
import Aura from '@primeuix/themes/aura';
|
|
99
|
+
|
|
100
|
+
const primereact = {
|
|
101
|
+
theme: {
|
|
102
|
+
preset: Aura,
|
|
103
|
+
options: {
|
|
104
|
+
darkModeSelector: '.my-app-dark'
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
createRoot(document.getElementById('root')!).render(
|
|
110
|
+
<StrictMode>
|
|
111
|
+
<PrimeReactProvider {...primereact}>
|
|
112
|
+
<App />
|
|
113
|
+
</PrimeReactProvider>
|
|
114
|
+
</StrictMode>
|
|
115
|
+
);
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Tailwind v4
|
|
119
|
+
|
|
120
|
+
Add a custom variant for dark with a custom selector.
|
|
121
|
+
|
|
122
|
+
```css
|
|
123
|
+
@import "tailwindcss";
|
|
124
|
+
@import "tailwindcss-primeui";
|
|
125
|
+
@custom-variant dark (&:where(.my-app-dark, .my-app-dark *)); //dark mode configuration
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Tailwind v3
|
|
129
|
+
|
|
130
|
+
Use the plugins option in your Tailwind config file to configure the plugin.
|
|
131
|
+
|
|
132
|
+
```tsx
|
|
133
|
+
// tailwind.config.js
|
|
134
|
+
import PrimeUI from 'tailwindcss-primeui';
|
|
135
|
+
|
|
136
|
+
export default {
|
|
137
|
+
darkMode: ['selector', '[className~="my-app-dark"]'], //dark mode configuration
|
|
138
|
+
plugins: [PrimeUI]
|
|
139
|
+
};
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## Override
|
|
143
|
+
|
|
144
|
+
Tailwind utilities may not be able to override the default styling of components due to css specificity, there are two possible solutions; Important and CSS Layer.
|
|
145
|
+
|
|
146
|
+
### Important
|
|
147
|
+
|
|
148
|
+
Use the `!` as a prefix to enforce the styling. This is not the recommend approach, and should be used as last resort to avoid adding unnecessary style classes to your bundle.
|
|
149
|
+
|
|
150
|
+
##### Tailwind v4
|
|
151
|
+
|
|
152
|
+
```tsx
|
|
153
|
+
<InputText placeholder="Overriden" className="p-8!" />
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
##### Tailwind v3
|
|
157
|
+
|
|
158
|
+
```tsx
|
|
159
|
+
<InputText placeholder="Overriden" className="!p-8" />
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### CSS Layer
|
|
163
|
+
|
|
164
|
+
CSS Layer provides control over the css specificity so that Tailwind utilities can safely override components.
|
|
165
|
+
|
|
166
|
+
##### Tailwind v4
|
|
167
|
+
|
|
168
|
+
Ensure `primereact` layer is after `theme` and `base`, but before the other Tailwind layers such as `utilities`.
|
|
169
|
+
|
|
170
|
+
```tsx showLineNumbers
|
|
171
|
+
import { StrictMode } from 'react';
|
|
172
|
+
import { createRoot } from 'react-dom/client';
|
|
173
|
+
import App from './App.tsx';
|
|
174
|
+
import { PrimeReactProvider } from '@primereact/core';
|
|
175
|
+
import Aura from '@primeuix/themes/aura';
|
|
176
|
+
|
|
177
|
+
const primereact = {
|
|
178
|
+
theme: {
|
|
179
|
+
preset: Aura,
|
|
180
|
+
options: {
|
|
181
|
+
cssLayer: {
|
|
182
|
+
name: 'primereact',
|
|
183
|
+
order: 'theme, base, primereact'
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
createRoot(document.getElementById('root')!).render(
|
|
190
|
+
<StrictMode>
|
|
191
|
+
<PrimeReactProvider {...primereact}>
|
|
192
|
+
<App />
|
|
193
|
+
</PrimeReactProvider>
|
|
194
|
+
</StrictMode>
|
|
195
|
+
);
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
No change in the CSS configuration is required.
|
|
199
|
+
|
|
200
|
+
```css
|
|
201
|
+
@import 'tailwindcss';
|
|
202
|
+
@import 'tailwindcss-primeui';
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
##### Tailwind v3
|
|
206
|
+
|
|
207
|
+
The `primereact` layer should be between base and utilities.
|
|
208
|
+
|
|
209
|
+
```tsx showLineNumbers
|
|
210
|
+
import { StrictMode } from 'react';
|
|
211
|
+
import { createRoot } from 'react-dom/client';
|
|
212
|
+
import App from './App.tsx';
|
|
213
|
+
import { PrimeReactProvider } from '@primereact/core';
|
|
214
|
+
import Aura from '@primeuix/themes/aura';
|
|
215
|
+
|
|
216
|
+
const primereact = {
|
|
217
|
+
theme: {
|
|
218
|
+
preset: Aura,
|
|
219
|
+
options: {
|
|
220
|
+
cssLayer: {
|
|
221
|
+
name: 'primereact',
|
|
222
|
+
order: 'tailwind-base, primereact, tailwind-utilities'
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
createRoot(document.getElementById('root')!).render(
|
|
229
|
+
<StrictMode>
|
|
230
|
+
<PrimeReactProvider {...primereact}>
|
|
231
|
+
<App />
|
|
232
|
+
</PrimeReactProvider>
|
|
233
|
+
</StrictMode>
|
|
234
|
+
);
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
Tailwind v3 does not use native `layer` so needs to be defined with CSS.
|
|
238
|
+
|
|
239
|
+
```css
|
|
240
|
+
@layer tailwind-base, primereact, tailwind-utilities;
|
|
241
|
+
|
|
242
|
+
@layer tailwind-base {
|
|
243
|
+
@tailwind base;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@layer tailwind-utilities {
|
|
247
|
+
@tailwind components;
|
|
248
|
+
@tailwind utilities;
|
|
249
|
+
}
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
## Samples
|
|
253
|
+
|
|
254
|
+
Example uses cases with PrimeReact and Tailwind CSS.
|
|
255
|
+
|
|
256
|
+
### Color Palette
|
|
257
|
+
|
|
258
|
+
PrimeReact color palette as utility classes.
|
|
259
|
+
|
|
260
|
+
```tsx
|
|
261
|
+
export default function ColorPaletteDemo() {
|
|
262
|
+
const colors = ['primary', 'surface'];
|
|
263
|
+
const shades = [0, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
264
|
+
|
|
265
|
+
return (
|
|
266
|
+
<div>
|
|
267
|
+
<div className="flex flex-col gap-12">
|
|
268
|
+
<ul className="p-0 m-0 list-none flex sm:flex-col gap-4 flex-wrap sm:flex-nowrap">
|
|
269
|
+
{colors.map((color, i) => (
|
|
270
|
+
<li key={i} className="flex-auto" style={{ minWidth: '6rem' }}>
|
|
271
|
+
<span className="font-medium capitalize block mb-2 text-center sm:text-left">{color}</span>
|
|
272
|
+
<div className="flex gap-4 flex-auto flex-col sm:flex-row">
|
|
273
|
+
{shades.map((shade) => (
|
|
274
|
+
<div
|
|
275
|
+
key={shade}
|
|
276
|
+
className={`flex flex-col items-center gap-1 flex-1 ${color === 'primary' && shade === 0 ? 'invisible' : ''}`}
|
|
277
|
+
>
|
|
278
|
+
<div className="rounded h-8 w-full" style={{ backgroundColor: `var(--p-${color}-${shade})` }}></div>
|
|
279
|
+
<span className="text-sm text-surface-500 dark:text-surface-400 font-medium">{shade}</span>
|
|
280
|
+
</div>
|
|
281
|
+
))}
|
|
282
|
+
</div>
|
|
283
|
+
</li>
|
|
284
|
+
))}
|
|
285
|
+
</ul>
|
|
286
|
+
<div className="flex gap-6 flex-wrap">
|
|
287
|
+
<div className="rounded-border p-4 border border-transparent flex items-center justify-center bg-primary hover:bg-primary-emphasis text-primary-contrast font-medium flex-auto transition-colors">
|
|
288
|
+
primary
|
|
289
|
+
</div>
|
|
290
|
+
<div className="rounded-border p-4 border border-transparent flex items-center justify-center bg-highlight hover:bg-highlight-emphasis font-medium flex-auto transition-colors">
|
|
291
|
+
highlight
|
|
292
|
+
</div>
|
|
293
|
+
<div className="rounded-border p-4 border border-surface flex items-center justify-center text-muted-color hover:text-color hover:bg-emphasis font-medium flex-auto transition-colors">
|
|
294
|
+
box
|
|
295
|
+
</div>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
</div>
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
```tsx
|
|
304
|
+
<div className="flex flex-col gap-12">
|
|
305
|
+
<div className="flex gap-6 flex-wrap">
|
|
306
|
+
<div className="rounded-border p-4 border border-transparent flex items-center justify-center bg-primary hover:bg-primary-emphasis text-primary-contrast font-medium flex-auto transition-colors">primary</div>
|
|
307
|
+
<div className="rounded-border p-4 border border-transparent flex items-center justify-center bg-highlight hover:bg-highlight-emphasis font-medium flex-auto transition-colors">highlight</div>
|
|
308
|
+
<div className="rounded-border p-4 border border-surface flex items-center justify-center text-muted-color hover:text-color hover:bg-emphasis font-medium flex-auto transition-colors">box</div>
|
|
309
|
+
</div>
|
|
310
|
+
</div>
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
### Starter
|
|
314
|
+
|
|
315
|
+
The Tailwind v4 and PrimeReact [starter example](https://github.com/primefaces/primereact-examples/tree/main/vite-quickstart-nextgen) is available to demonstrate the integration setup with an example dashboard.
|
|
316
|
+
|
|
317
|
+
## Animations
|
|
318
|
+
|
|
319
|
+
The plugin also adds extended animation utilities that can be used with the styleclass and animateonscroll components.
|
|
320
|
+
|
|
321
|
+
### Animation Name
|
|
322
|
+
|
|
323
|
+
| Class | Property |
|
|
324
|
+
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
325
|
+
| `animate-enter` | animation-name: enter; <br />--p-enter-opacity: initial; <br />--p-enter-scale: initial; <br />--p-enter-rotate: initial; <br />--p-enter-translate-x: initial; <br />--p-enter-translate-y: initial; |
|
|
326
|
+
| `animate-leave` | animation-name: leave; <br />--p-leave-opacity: initial; <br />--p-leave-scale: initial; <br />--p-leave-rotate: initial; <br />--p-leave-translate-x: initial; <br />--p-leave-translate-y: initial; |
|
|
327
|
+
| `animate-leave` | fadein 0.15s linear |
|
|
328
|
+
| `animate-fadein` | fadein 0.15s linear |
|
|
329
|
+
| `animate-fadeout` | fadeout 0.15s linear |
|
|
330
|
+
| `animate-slidedown` | slidedown 0.45s ease-in-out |
|
|
331
|
+
| `animate-slideup` | slideup 0.45s cubic-bezier(0, 1, 0, 1) |
|
|
332
|
+
| `animate-scalein` | scalein 0.15s linear |
|
|
333
|
+
| `animate-fadeinleft` | fadeinleft 0.15s linear |
|
|
334
|
+
| `animate-fadeoutleft` | fadeoutleft 0.15s linear |
|
|
335
|
+
| `animate-fadeinright` | fadeinright 0.15s linear |
|
|
336
|
+
| `animate-fadeoutright` | fadeoutright 0.15s linear |
|
|
337
|
+
| `animate-fadeinup` | fadeinup 0.15s linear |
|
|
338
|
+
| `animate-fadeoutup` | fadeoutup 0.15s linear |
|
|
339
|
+
| `animate-fadeindown` | fadeindown 0.15s linear |
|
|
340
|
+
| `animate-fadeoutup` | fadeoutup 0.15s linear |
|
|
341
|
+
| `animate-width` | width 0.15s linear |
|
|
342
|
+
| `animate-flip` | flip 0.15s linear |
|
|
343
|
+
| `animate-flipup` | flipup 0.15s linear |
|
|
344
|
+
| `animate-flipleft` | fadein 0.15s linear |
|
|
345
|
+
| `animate-flipright` | flipright 0.15s linear |
|
|
346
|
+
| `animate-zoomin` | zoomin 0.15s linear |
|
|
347
|
+
| `animate-zoomindown` | zoomindown 0.15s linear |
|
|
348
|
+
| `animate-zoominleft` | zoominleft 0.15s linear |
|
|
349
|
+
| `animate-zoominright` | zoominright 0.15s linear |
|
|
350
|
+
| `animate-zoominup` | zoominup 0.15s linear |
|
|
351
|
+
|
|
352
|
+
### Animation Duration
|
|
353
|
+
|
|
354
|
+
| Class | Property |
|
|
355
|
+
| -------------------------- | -------------------------- |
|
|
356
|
+
| `animate-duration-0` | animation-duration: 0s |
|
|
357
|
+
| `animate-duration-75` | animation-duration: 75ms |
|
|
358
|
+
| `animate-duration-100` | animation-duration: 100ms |
|
|
359
|
+
| `animate-duration-200` | animation-duration: 200ms |
|
|
360
|
+
| `animate-duration-300` | animation-duration: 300ms |
|
|
361
|
+
| `animate-duration-400` | animation-duration: 400ms |
|
|
362
|
+
| `animate-duration-500` | animation-duration: 500ms |
|
|
363
|
+
| `animate-duration-700` | animation-duration: 700ms |
|
|
364
|
+
| `animate-duration-1000` | animation-duration: 1000ms |
|
|
365
|
+
| `animate-duration-2000` | animation-duration: 2000ms |
|
|
366
|
+
| `animate-duration-3000` | animation-duration: 300ms |
|
|
367
|
+
| `animate-duration-[value]` | animation-duration: value |
|
|
368
|
+
|
|
369
|
+
### Animation Delay
|
|
370
|
+
|
|
371
|
+
| Class | Property |
|
|
372
|
+
| -------------------- | ----------------------- |
|
|
373
|
+
| `animate-delay-none` | animation-duration: 0s |
|
|
374
|
+
| `animate-delay-75` | animation-delay: 75ms |
|
|
375
|
+
| `animate-delay-100` | animation-delay: 100ms |
|
|
376
|
+
| `animate-delay-150` | animation-delay: 150ms |
|
|
377
|
+
| `animate-delay-200` | animation-delay: 200ms |
|
|
378
|
+
| `animate-delay-300` | animation-delay: 300ms |
|
|
379
|
+
| `animate-delay-400` | animation-delay: 400ms |
|
|
380
|
+
| `animate-delay-500` | animation-delay: 500ms |
|
|
381
|
+
| `animate-delay-700` | animation-delay: 700ms |
|
|
382
|
+
| `animate-delay-1000` | animation-delay: 1000ms |
|
|
383
|
+
|
|
384
|
+
### Iteration Count
|
|
385
|
+
|
|
386
|
+
| Class | Property |
|
|
387
|
+
| ------------------ | ----------------------------------- |
|
|
388
|
+
| `animate-infinite` | animation-iteration-count: infinite |
|
|
389
|
+
| `animate-once` | animation-iteration-count: 1 |
|
|
390
|
+
| `animate-twice` | animation-iteration-count: 2 |
|
|
391
|
+
|
|
392
|
+
### Direction
|
|
393
|
+
|
|
394
|
+
| Class | Property |
|
|
395
|
+
| --------------------------- | -------------------------------------- |
|
|
396
|
+
| `animate-normal` | animation-direction: normal |
|
|
397
|
+
| `animate-reverse` | animation-direction: reverse |
|
|
398
|
+
| `animate-alternate` | animation-direction: alternate |
|
|
399
|
+
| `animate-alternate-reverse` | animation-direction: alternate-reverse |
|
|
400
|
+
|
|
401
|
+
### Timing Function
|
|
402
|
+
|
|
403
|
+
| Class | Property |
|
|
404
|
+
| --------------------- | ------------------------------------------------------- |
|
|
405
|
+
| `animate-ease-linear` | animation-timing-function: linear |
|
|
406
|
+
| `animate-ease-in` | animation-timing-function: cubic-bezier(0.4, 0, 1, 1) |
|
|
407
|
+
| `animate-ease-out` | animation-timing-function: cubic-bezier(0, 0, 0.2, 1) |
|
|
408
|
+
| `animate-ease-in-out` | animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) |
|
|
409
|
+
|
|
410
|
+
### Fill Mode
|
|
411
|
+
|
|
412
|
+
| Class | Property |
|
|
413
|
+
| ------------------------ | ------------------------------ |
|
|
414
|
+
| `animate-fill-none` | animation-fill-mode: normal |
|
|
415
|
+
| `animate-fill-forwards` | animation-fill-mode: forwards |
|
|
416
|
+
| `animate-fill-backwards` | animation-fill-mode: backwards |
|
|
417
|
+
| `animate-fill-both` | animation-fill-mode: both |
|
|
418
|
+
|
|
419
|
+
### Play State
|
|
420
|
+
|
|
421
|
+
| Class | Property |
|
|
422
|
+
| ----------------- | ----------------------------- |
|
|
423
|
+
| `animate-running` | animation-play-state: running |
|
|
424
|
+
| `animate-paused` | animation-play-state: paused |
|
|
425
|
+
|
|
426
|
+
### Backface Visibility State
|
|
427
|
+
|
|
428
|
+
| Class | Property |
|
|
429
|
+
| ------------------ | ---------------------------- |
|
|
430
|
+
| `backface-visible` | backface-visibility: visible |
|
|
431
|
+
| `backface-hidden` | backface-visibility: hidden |
|
|
432
|
+
|
|
433
|
+
### Fade In and Out
|
|
434
|
+
|
|
435
|
+
Values are derived from the Tailwind CSS [opacity](https://tailwindcss.com/docs/opacity) e.g. _fade-in-50_ and _fade-out-20_. Arbitrary values such as _fade-in-[15]_ are also supported.
|
|
436
|
+
|
|
437
|
+
| Class | Property |
|
|
438
|
+
| ------------------ | ---------------------------- |
|
|
439
|
+
| `fade-in-{value}` | --p-enter-opacity: \{value\} |
|
|
440
|
+
| `fade-out-{value}` | --p-leave-opacity: \{value\} |
|
|
441
|
+
|
|
442
|
+
### Zoom In and Out
|
|
443
|
+
|
|
444
|
+
Values are derived from the Tailwind CSS [scale](https://tailwindcss.com/docs/scale) e.g. _zoom-in-50_ and _zoom-out-75_. Arbitrary values such as _zoom-in-[0.8]_ are also supported.
|
|
445
|
+
|
|
446
|
+
| Class | Property |
|
|
447
|
+
| ------------------ | -------------------------- |
|
|
448
|
+
| `zoom-in-{value}` | --p-enter-scale: \{value\} |
|
|
449
|
+
| `zoom-out-{value}` | --p-leave-scale: \{value\} |
|
|
450
|
+
|
|
451
|
+
### Spin In and Out
|
|
452
|
+
|
|
453
|
+
Values are derived from the Tailwind CSS [rotate](https://tailwindcss.com/docs/rotate) e.g. _spin-in-45_ and _spin-out-90_. Arbitrary values such as _spin-in-[60deg]_ are also supported.
|
|
454
|
+
|
|
455
|
+
| Class | Property |
|
|
456
|
+
| ------------------ | --------------------------- |
|
|
457
|
+
| `spin-in-{value}` | --p-enter-rotate: \{value\} |
|
|
458
|
+
| `spin-out-{value}` | --p-leave-rotate: \{value\} |
|
|
459
|
+
|
|
460
|
+
### Slide In and Out
|
|
461
|
+
|
|
462
|
+
Values are derived from the Tailwind CSS [translate](https://tailwindcss.com/docs/translate) e.g. _slide-in-from-t-50_ and _slide-out-to-l-8_. Arbitrary values such as _slide-in-from-b-[8px]_ are also supported.
|
|
463
|
+
|
|
464
|
+
| Class | Property |
|
|
465
|
+
| ------------------------- | --------------------------------- |
|
|
466
|
+
| `slide-in-from-t-{value}` | --p-enter-translate-y: -\{value\} |
|
|
467
|
+
| `slide-in-from-b-{value}` | --p-enter-translate-y: \{value\} |
|
|
468
|
+
| `slide-in-from-l-{value}` | --p-enter-translate-x: -\{value\} |
|
|
469
|
+
| `slide-in-from-r-{value}` | --p-enter-translate-x: \{value\} |
|
|
470
|
+
| `slide-out-to-t-{value}` | --p-leave-translate-y: -\{value\} |
|
|
471
|
+
| `slide-out-to-b-{value}` | --p-leave-translate-y: \{value\} |
|
|
472
|
+
| `slide-out-to-l-{value}` | --p-leave-translate-x: -\{value\} |
|
|
473
|
+
| `slide-out-to-r-{value}` | --p-leave-translate-x: \{value\} |
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Unstyled Mode
|
|
2
|
+
|
|
3
|
+
Build fully customizable components with complete control over styling by disabling default themes and implementing your own design system.
|
|
4
|
+
|
|
5
|
+
## Architecture
|
|
6
|
+
|
|
7
|
+
The term `unstyled` is used to define an alternative styling approach instead of the default theming with design tokens. In unstyled mode the css variables of the design tokens and the css rule sets that utilize them are not
|
|
8
|
+
included. Here is an example of an Unstyled Checkbox, the core functionality and accessibility is provided whereas styling is not included. Unstyled components still need to be styled on your end, in the next sections, we'll cover the
|
|
9
|
+
styling solutions for both modes.
|
|
10
|
+
|
|
11
|
+
```tsx
|
|
12
|
+
import { Checkbox } from '@primereact/ui/checkbox';
|
|
13
|
+
|
|
14
|
+
export default function CheckboxDemo() {
|
|
15
|
+
return (
|
|
16
|
+
<div className="flex items-center justify-center">
|
|
17
|
+
<div className="flex items-center gap-2">
|
|
18
|
+
<Checkbox.Root unstyled />
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Setup
|
|
26
|
+
|
|
27
|
+
Unstyled mode is enabled for the whole suite by enabling `unstyled` option during PrimeReact installation.
|
|
28
|
+
|
|
29
|
+
```tsx showLineNumbers
|
|
30
|
+
import { StrictMode } from 'react';
|
|
31
|
+
import { createRoot } from 'react-dom/client';
|
|
32
|
+
import App from './App.tsx';
|
|
33
|
+
import { PrimeReactProvider } from '@primereact/core';
|
|
34
|
+
|
|
35
|
+
createRoot(document.getElementById('root')!).render(
|
|
36
|
+
<StrictMode>
|
|
37
|
+
<PrimeReactProvider unstyled={true}>
|
|
38
|
+
<App />
|
|
39
|
+
</PrimeReactProvider>
|
|
40
|
+
</StrictMode>
|
|
41
|
+
);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Alternatively even in the default styled mode, a particular component can still be used as unstyled by adding the `unstyled` prop of the component.
|
|
45
|
+
|
|
46
|
+
```tsx
|
|
47
|
+
import { Button } from '@primereact/ui/button';
|
|
48
|
+
import { Check } from '@primeicons/react/check';
|
|
49
|
+
|
|
50
|
+
export default function AlternativeButtonDemo() {
|
|
51
|
+
return (
|
|
52
|
+
<div className="flex justify-center">
|
|
53
|
+
<Button unstyled>
|
|
54
|
+
Check
|
|
55
|
+
<Check />
|
|
56
|
+
</Button>
|
|
57
|
+
</div>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Example
|
|
63
|
+
|
|
64
|
+
Here is a sample that styles a button component with Tailwind CSS using [passthrough](/docs/passthrough) attributes. Before beginning, head over to the the pass through section at
|
|
65
|
+
[button](/docs/button) documentation to learn more about the components internals section. We'll be using the `root` element to add a custom style.
|
|
66
|
+
|
|
67
|
+
```tsx
|
|
68
|
+
import { Button } from '@primereact/ui/button';
|
|
69
|
+
import { Search } from '@primeicons/react/search';
|
|
70
|
+
|
|
71
|
+
export default function ButtonDemo() {
|
|
72
|
+
return (
|
|
73
|
+
<div className="flex justify-center">
|
|
74
|
+
<Button
|
|
75
|
+
unstyled
|
|
76
|
+
pt-root-className="bg-teal-500 hover:bg-teal-700 active:bg-teal-900 cursor-pointer py-2 px-4 rounded-full border-0 flex gap-2 text-white text-lg font-bold"
|
|
77
|
+
>
|
|
78
|
+
Search
|
|
79
|
+
<Search className="text-lg! font-bold!" />
|
|
80
|
+
</Button>
|
|
81
|
+
</div>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Global
|
|
87
|
+
|
|
88
|
+
A global configuration can be created at application level to avoid repetition via the global `pt` option so that the styles can be shared from a single location. A particular component can still override a global configuration with
|
|
89
|
+
its own `pt` property.
|
|
90
|
+
|
|
91
|
+
```tsx showLineNumbers
|
|
92
|
+
import { StrictMode } from 'react';
|
|
93
|
+
import { createRoot } from 'react-dom/client';
|
|
94
|
+
import App from './App.tsx';
|
|
95
|
+
import { PrimeReactProvider } from '@primereact/core';
|
|
96
|
+
|
|
97
|
+
const globalPT = {
|
|
98
|
+
button: {
|
|
99
|
+
root: "bg-teal-500 hover:bg-teal-700 active:bg-teal-900 cursor-pointer py-2 px-4 rounded-full border-0 flex gap-2 text-white text-lg font-bold"
|
|
100
|
+
}
|
|
101
|
+
panel: {
|
|
102
|
+
header: 'bg-primary text-primary-contrast border-primary',
|
|
103
|
+
content: 'border-primary text-lg text-primary-700',
|
|
104
|
+
title: 'bg-primary text-primary-contrast text-xl'
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
createRoot(document.getElementById('root')!).render(
|
|
109
|
+
<StrictMode>
|
|
110
|
+
<PrimeReactProvider pt={globalPT}>
|
|
111
|
+
<App />
|
|
112
|
+
</PrimeReactProvider>
|
|
113
|
+
</StrictMode>
|
|
114
|
+
);
|
|
115
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Resources
|
|
2
|
+
|
|
3
|
+
Support channels, legacy versions and places to discover more about PrimeReact.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
Everything around the library, where to get help, find older versions, and stay up to date.
|
|
8
|
+
|
|
9
|
+
## What's here
|
|
10
|
+
|
|
11
|
+
- **Support**, get help on Discord, the community forum, or through premium support.
|
|
12
|
+
- **Legacy**, documentation for previous major versions.
|
|
13
|
+
- **Discover**, the store, social channels and newsletter.
|
|
14
|
+
|
|
15
|
+
Pick a category from the sidebar to jump in.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Add-Ons
|
|
2
|
+
|
|
3
|
+
Premium templates, UI blocks and design tooling that build on top of PrimeReact.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
Add-Ons are premium, production-ready resources built on top of PrimeReact. They help you skip the boilerplate and ship faster, from full application templates to ready-made UI blocks and design tooling.
|
|
8
|
+
|
|
9
|
+
## What's included
|
|
10
|
+
|
|
11
|
+
- **Templates**, complete, themeable application starters with layouts, pages and integrations wired up.
|
|
12
|
+
- **Blocks**, copy-and-paste UI sections for application, marketing and e-commerce pages.
|
|
13
|
+
- **Figma UI Kit**, the design source that mirrors the component library, for designing before you build.
|
|
14
|
+
- **Theme Designer**, a visual tool to craft and export your own design tokens and themes.
|
|
15
|
+
|
|
16
|
+
Pick a category from the sidebar to explore each add-on.
|