@patternfly/patternfly-doc-core 1.11.1 → 1.12.1
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/.astro/collections/{examples.schema.json → react-component-docs.schema.json} +4 -3
- package/.astro/content-modules.mjs +84 -2
- package/.astro/content.d.ts +3 -11
- package/cli/cli.ts +35 -16
- package/cli/convertToMDX.ts +13 -2
- package/cli/createCollectionContent.ts +2 -1
- package/dist/cli/cli.js +17 -6
- package/dist/cli/convertToMDX.js +10 -2
- package/dist/cli/createCollectionContent.js +2 -1
- package/dist/docs/_astro/AutoLinkHeader.BijNRLMB.js +1 -0
- package/dist/docs/_astro/CSSTable.-Emc9iTg.js +1 -0
- package/dist/docs/_astro/DropdownList.DP2npVYh.js +1 -0
- package/dist/docs/_astro/Label.CM_es7Cu.js +1 -0
- package/dist/docs/_astro/LiveExample.B5R4Dzng.js +263 -0
- package/dist/docs/_astro/Navigation.B2RHZcqO.js +1 -0
- package/dist/docs/_astro/PageSidebarBody.DgDLnRuY.js +1 -0
- package/dist/docs/_astro/PropsTables.D6ZI3FGj.css +1 -0
- package/dist/docs/_astro/PropsTables.YkW1puJk.js +1 -0
- package/dist/docs/_astro/SearchInput.CQ7aDztp.js +1 -0
- package/dist/docs/_astro/SectionGallery.B0I2mi5J.js +1 -0
- package/dist/docs/_astro/StackItem.CMxajCCo.js +1 -0
- package/dist/docs/_astro/Toolbar.BNjGRsAQ.js +1 -0
- package/dist/docs/_astro/ToolbarContent.CAAHjZHW.js +1 -0
- package/dist/{_astro/_page_.D1z73Byz.css → docs/_astro/_page_.BG_fQ4i5.css} +1 -1
- package/dist/docs/_astro/angle-down-icon.Dqz5ba9D.js +1 -0
- package/dist/docs/_astro/c_table__sticky_cell_InsetInlineStart.DGzYmtkF.js +8 -0
- package/dist/{_astro/divider.BLVh3KnH.js → docs/_astro/divider.BP4XR7uq.js} +1 -1
- package/dist/docs/_astro/index.DGdw5tfb.js +16 -0
- package/dist/{_astro/patternfly_charts.Dp3KzAU6.js → docs/_astro/patternfly_charts.CpLYMsW2.js} +23 -30
- package/dist/docs/_astro/resizeObserver.BgQpxO8W.js +1 -0
- package/dist/{_routes.json → docs/_routes.json} +1 -3
- package/dist/{_worker.js → docs/_worker.js}/_@astrojs-ssr-adapter.mjs +1 -1
- package/dist/{_worker.js → docs/_worker.js}/_astro-internal_middleware.mjs +3 -3
- package/dist/docs/_worker.js/chunks/Backdrop_ByJvccKQ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Backdrop_D12wBLrB.mjs +1 -0
- package/dist/docs/_worker.js/chunks/BackgroundImage_7zaRIuh-.mjs +1 -0
- package/dist/docs/_worker.js/chunks/BackgroundImage_BFUrU51J.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Badge_DloPmeMn.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Badge_DxGDbEGv.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Banner_4Te4yy7I.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Banner_FbFCGml0.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Brand_Cjeb58fX.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Brand_DZEvbkMH.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Breadcrumb_DkNDUMw0.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Breadcrumb_bVSwIfTk.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Button_BqggYTWh.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Button_DbZb-z5h.mjs +1 -0
- package/dist/docs/_worker.js/chunks/CalendarMonth_BdoIQD1o.mjs +1 -0
- package/dist/docs/_worker.js/chunks/CalendarMonth_BqZc2rYW.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Card_BW6WmwTW.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Card_CEDol7Xx.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Checkbox_BqVpiIvF.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Checkbox_DSYhfv7p.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Chip_BciXepRF.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Chip_C23BxFTk.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ClipboardCopy_BjySfoK1.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ClipboardCopy_CvrD2b3T.mjs +1 -0
- package/dist/docs/_worker.js/chunks/CodeBlock_CuH1PrfL.mjs +1 -0
- package/dist/docs/_worker.js/chunks/CodeBlock_DK5AauFn.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Content_BfZIFUr8.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Content_lBUC3eEp.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DataList_CSJAkMMZ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DataList_CaFvg0uz.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DatePicker_Cw2abdEU.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DatePicker_bYwsFHXL.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DescriptionList_BTTyevMb.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DescriptionList_Dr51d-67.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Divider_BgOt1--F.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Divider_Bh7n4QTo.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DragDrop_BF-aF6Z8.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DragDrop_DId590rN.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Drawer_BVywTMVo.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Drawer_RrCnySEa.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Dropdown_BjtqviYW.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Dropdown_GiUvjFPw.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DualListSelector_8uLukfP0.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DualListSelector_Bgj1IWqe.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DualListSelector_C5QjTplp.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DualListSelector_DLgspM0s.mjs +1 -0
- package/dist/docs/_worker.js/chunks/EmptyState_Ct_PJba3.mjs +1 -0
- package/dist/docs/_worker.js/chunks/EmptyState_Dk3hKJlg.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ExpandableSection_DSw76PjZ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ExpandableSection_vUQO3FgG.mjs +1 -0
- package/dist/docs/_worker.js/chunks/FileUpload_CEvZ0G-d.mjs +1 -0
- package/dist/docs/_worker.js/chunks/FileUpload_Ci_s8Ghd.mjs +1 -0
- package/dist/docs/_worker.js/chunks/FormSelect_C2YPRAlw.mjs +1 -0
- package/dist/docs/_worker.js/chunks/FormSelect_DWShl8Fb.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Form_Dyb98Nez.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Form_olaoRN4o.mjs +1 -0
- package/dist/docs/_worker.js/chunks/HelperText_2CcHVaih.mjs +1 -0
- package/dist/docs/_worker.js/chunks/HelperText_DthGttZo.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Hint_BXDZKYhJ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Hint_DHoiYdn6.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Icon_C4IPnIAg.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Icon_C_Dqbg9w.mjs +1 -0
- package/dist/docs/_worker.js/chunks/InputGroup_CDKP-uXZ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/InputGroup_CmZgaEyr.mjs +1 -0
- package/dist/docs/_worker.js/chunks/JumpLinks_DvM3PVg0.mjs +1 -0
- package/dist/docs/_worker.js/chunks/JumpLinks_Dvdlxdps.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Label_C7fP9Jp9.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Label_Cxir7_Q4.mjs +1 -0
- package/dist/docs/_worker.js/chunks/List_CUgwFnXa.mjs +1 -0
- package/dist/docs/_worker.js/chunks/List_CWAsiYnN.mjs +1 -0
- package/dist/docs/_worker.js/chunks/LoginPage_BDfliKtU.mjs +1 -0
- package/dist/docs/_worker.js/chunks/LoginPage_BjIl_nF9.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Masthead_BWjm5CFj.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Masthead_BZnYzDu_.mjs +1 -0
- package/dist/docs/_worker.js/chunks/MenuToggle_DeKwv469.mjs +1 -0
- package/dist/docs/_worker.js/chunks/MenuToggle_DmJISlPR.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Menu_DRRoq5PM.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Menu_Sl-QVQ_w.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Modal_6WZzoDHU.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Modal_BI2dVPRJ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Modal_CdokBUDP.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Modal_DJRobnfc.mjs +1 -0
- package/dist/docs/_worker.js/chunks/MultipleFileUpload_BaHVtkF_.mjs +1 -0
- package/dist/docs/_worker.js/chunks/MultipleFileUpload_BznvLbsj.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Nav_DwqATcJ4.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Nav_GZ0nRYXE.mjs +1 -0
- package/dist/docs/_worker.js/chunks/NotificationBadge_DO4OLgvO.mjs +1 -0
- package/dist/docs/_worker.js/chunks/NotificationBadge_DjINhOQ5.mjs +1 -0
- package/dist/docs/_worker.js/chunks/NotificationDrawer_BtpQ4pmZ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/NotificationDrawer_D1lmMCgd.mjs +1 -0
- package/dist/docs/_worker.js/chunks/NumberInput_CggpJ5ge.mjs +1 -0
- package/dist/docs/_worker.js/chunks/NumberInput_zMcSUUwH.mjs +1 -0
- package/dist/docs/_worker.js/chunks/OverflowMenu_BX4nwFvK.mjs +1 -0
- package/dist/docs/_worker.js/chunks/OverflowMenu_DnQ7wMy-.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Page_Cw_XTB6Y.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Page_UhywZXdY.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Pagination_7rr0n7-V.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Pagination_Dc5L6yaI.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Panel_Bl_LqCWS.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Panel_s8-TwBlS.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Popover_CjipqBWs.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Popover_DvQgGJTf.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ProgressStepper_DXBI4K2w.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ProgressStepper_lBd5mTHE.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Progress_BZA5taDC.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Progress_CIgybc-D.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Radio_3tPx1coq.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Radio_BG7VZAk6.mjs +1 -0
- package/dist/docs/_worker.js/chunks/SearchInput_BZ43-Elo.mjs +1 -0
- package/dist/docs/_worker.js/chunks/SearchInput_aCFv-N1U.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Select_B4cumL7U.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Select_CJ78kBVM.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Sidebar_Bto2_gKJ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Sidebar_DOfifBRA.mjs +1 -0
- package/dist/docs/_worker.js/chunks/SimpleList_CVkO5Odp.mjs +1 -0
- package/dist/docs/_worker.js/chunks/SimpleList_oJajk3_z.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Skeleton_CCJNka-d.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Skeleton_N02yA_k6.mjs +1 -0
- package/dist/docs/_worker.js/chunks/SkipToContent_DvOYRCWm.mjs +1 -0
- package/dist/docs/_worker.js/chunks/SkipToContent_o7vh-U_u.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Slider_C0bH-JMY.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Slider_CWRDqhx4.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Spinner_B-x8bJt0.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Spinner_hzAAbZdS.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Switch_Cpr1OETy.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Switch_Du7AKJ4O.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Tabs_CzDrfKA-.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Tabs_KXDkISY4.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TextArea_C1dmG8mr.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TextArea_Dtm0m8LO.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TextInputGroup_D0NXU95v.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TextInputGroup_mJpBrogC.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TextInput_B0XLYaVA.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TextInput_CmLcsUiv.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Tile_CF_12LPU.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Tile_DJ0LawLW.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TimePicker_CijfSKJQ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TimePicker_VX9VE-Uy.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Timestamp_D7uyrIK7.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Timestamp_c2Mozpr4.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Title_DbrwFEEy.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Title_DlFn7G9R.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ToggleGroup_DpLWzfAW.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ToggleGroup_j1ooRpX3.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Toolbar_BEIh7r7J.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Toolbar_mjrD3_l-.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Tooltip_Bp5XOVoV.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Tooltip_BrFKk02i.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TreeView_BImfKPD_.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TreeView_CgO4iC1E.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Truncate_Bn55QoeZ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Truncate_S939OotH.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Wizard_B28f3non.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Wizard_B4Dw5Yc8.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Wizard_BOCBVIjJ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Wizard_C2sit354.mjs +1 -0
- package/dist/{_worker.js/renderers.mjs → docs/_worker.js/chunks/_@astro-renderers_D4IG6Oyo.mjs} +55 -3
- package/dist/{_worker.js/chunks/_@astrojs-ssr-adapter_IMtcR503.mjs → docs/_worker.js/chunks/_@astrojs-ssr-adapter_CBRUgCDy.mjs} +4 -4
- package/dist/docs/_worker.js/chunks/_astro_assets_tcq0nD7B.mjs +1 -0
- package/dist/docs/_worker.js/chunks/_astro_data-layer-content_gjMewtSO.mjs +1 -0
- package/dist/{_worker.js/chunks/astro/server_YsSSp7Ny.mjs → docs/_worker.js/chunks/astro/server_CVEnF9i1.mjs} +1 -3
- package/dist/{_worker.js/chunks/astro-designed-error-pages_MEt0E9xn.mjs → docs/_worker.js/chunks/astro-designed-error-pages_CXRddWNa.mjs} +1 -1
- package/dist/docs/_worker.js/chunks/content-assets_XqCgPAV2.mjs +1 -0
- package/dist/docs/_worker.js/chunks/content-modules_D0Eecfsp.mjs +1 -0
- package/dist/{_worker.js/chunks/index_BE2AHcwI.mjs → docs/_worker.js/chunks/index_CYXMeXT4.mjs} +2 -2
- package/dist/{_worker.js/chunks/noop-middleware_CMUpAQ6F.mjs → docs/_worker.js/chunks/noop-middleware_DIXVCvyq.mjs} +1 -1
- package/dist/docs/_worker.js/chunks/sharp_BPZD2zgR.mjs +1 -0
- package/dist/{_worker.js → docs/_worker.js}/index.js +4 -8
- package/dist/docs/_worker.js/manifest_DGS5MtBy.mjs +100 -0
- package/dist/{_worker.js → docs/_worker.js}/pages/_image.astro.mjs +1 -1
- package/dist/docs/_worker.js/pages/_section_/_---page_.astro.mjs +1 -0
- package/dist/docs/_worker.js/pages/_section_/_page_/_---tab_.astro.mjs +1 -0
- package/dist/docs/_worker.js/pages/index.astro.mjs +1 -0
- package/dist/{_worker.js → docs/_worker.js}/pages/props.astro.mjs +1 -1
- package/dist/docs/_worker.js/renderers.mjs +2 -0
- package/dist/docs/components/about-modal/index.html +56 -0
- package/dist/docs/components/about-modal/react/index.html +56 -0
- package/dist/docs/components/accordion/index.html +62 -0
- package/dist/docs/components/accordion/react/index.html +62 -0
- package/dist/docs/components/action-list/index.html +59 -0
- package/dist/docs/components/action-list/react/index.html +59 -0
- package/dist/docs/components/alert/index.html +428 -0
- package/dist/docs/components/alert/react/index.html +428 -0
- package/dist/docs/components/avatar/index.html +56 -0
- package/dist/docs/components/avatar/react/index.html +56 -0
- package/dist/docs/components/back-to-top/index.html +53 -0
- package/dist/docs/components/back-to-top/react/index.html +53 -0
- package/dist/docs/components/backdrop/index.html +49 -0
- package/dist/docs/components/backdrop/react/index.html +49 -0
- package/dist/docs/components/background-image/index.html +49 -0
- package/dist/docs/components/background-image/react/index.html +49 -0
- package/dist/docs/components/badge/index.html +57 -0
- package/dist/docs/components/badge/react/index.html +57 -0
- package/dist/docs/components/banner/index.html +57 -0
- package/dist/docs/components/banner/react/index.html +57 -0
- package/dist/docs/components/brand/index.html +55 -0
- package/dist/docs/components/brand/react/index.html +55 -0
- package/dist/docs/components/breadcrumb/index.html +59 -0
- package/dist/docs/components/breadcrumb/react/index.html +59 -0
- package/dist/docs/components/button/index.html +152 -0
- package/dist/docs/components/button/react/index.html +152 -0
- package/dist/docs/components/calendar-month/index.html +55 -0
- package/dist/docs/components/calendar-month/react/index.html +55 -0
- package/dist/docs/components/card/index.html +159 -0
- package/dist/docs/components/card/react/index.html +159 -0
- package/dist/docs/components/checkbox/index.html +78 -0
- package/dist/docs/components/checkbox/react/index.html +78 -0
- package/dist/docs/components/chip/index.html +61 -0
- package/dist/docs/components/chip/react-deprecated/index.html +61 -0
- package/dist/docs/components/clipboard-copy/index.html +84 -0
- package/dist/docs/components/clipboard-copy/react/index.html +84 -0
- package/dist/docs/components/code-block/index.html +55 -0
- package/dist/docs/components/code-block/react/index.html +55 -0
- package/dist/docs/components/content/index.html +79 -0
- package/dist/docs/components/content/react/index.html +79 -0
- package/dist/docs/components/data-list/index.html +86 -0
- package/dist/docs/components/data-list/react/index.html +86 -0
- package/dist/docs/components/date-picker/index.html +77 -0
- package/dist/docs/components/date-picker/react/index.html +77 -0
- package/dist/docs/components/description-list/index.html +135 -0
- package/dist/docs/components/description-list/react/index.html +135 -0
- package/dist/docs/components/divider/index.html +74 -0
- package/dist/docs/components/divider/react/index.html +74 -0
- package/dist/docs/components/drag-and-drop/index.html +69 -0
- package/dist/docs/components/drag-and-drop/react-deprecated/index.html +69 -0
- package/dist/docs/components/drawer/index.html +108 -0
- package/dist/docs/components/drawer/react/index.html +108 -0
- package/dist/docs/components/dropdown/index.html +71 -0
- package/dist/docs/components/dropdown/react/index.html +71 -0
- package/dist/docs/components/dual-list-selector/index.html +89 -0
- package/dist/docs/components/dual-list-selector/react/index.html +89 -0
- package/dist/docs/components/dual-list-selector/react-deprecated/index.html +106 -0
- package/dist/docs/components/empty-state/index.html +71 -0
- package/dist/docs/components/empty-state/react/index.html +71 -0
- package/dist/docs/components/expandable-section/index.html +76 -0
- package/dist/docs/components/expandable-section/react/index.html +76 -0
- package/dist/docs/components/form/index.html +87 -0
- package/dist/docs/components/form/react/index.html +87 -0
- package/dist/docs/components/form-select/index.html +59 -0
- package/dist/docs/components/form-select/react/index.html +59 -0
- package/dist/docs/components/helper-text/index.html +57 -0
- package/dist/docs/components/helper-text/react/index.html +57 -0
- package/dist/docs/components/hint/index.html +59 -0
- package/dist/docs/components/hint/react/index.html +59 -0
- package/dist/docs/components/icon/index.html +80 -0
- package/dist/docs/components/icon/react/index.html +80 -0
- package/dist/docs/components/input-group/index.html +62 -0
- package/dist/docs/components/input-group/react/index.html +62 -0
- package/dist/docs/components/jump-links/index.html +66 -0
- package/dist/docs/components/jump-links/react/index.html +66 -0
- package/dist/docs/components/label/index.html +103 -0
- package/dist/docs/components/label/react/index.html +103 -0
- package/dist/docs/components/list/index.html +68 -0
- package/dist/docs/components/list/react/index.html +68 -0
- package/dist/docs/components/login-page/index.html +56 -0
- package/dist/docs/components/login-page/react/index.html +56 -0
- package/dist/docs/components/masthead/index.html +76 -0
- package/dist/docs/components/masthead/react/index.html +76 -0
- package/dist/docs/components/menu/index.html +160 -0
- package/dist/docs/components/menu/react/index.html +160 -0
- package/dist/docs/components/menu-toggle/index.html +201 -0
- package/dist/docs/components/menu-toggle/react/index.html +201 -0
- package/dist/docs/components/modal/index.html +113 -0
- package/dist/docs/components/modal/react/index.html +113 -0
- package/dist/docs/components/modal/react-deprecated/index.html +117 -0
- package/dist/docs/components/multiple-file-upload/index.html +84 -0
- package/dist/docs/components/multiple-file-upload/react/index.html +84 -0
- package/dist/docs/components/navigation/index.html +89 -0
- package/dist/docs/components/navigation/react/index.html +89 -0
- package/dist/docs/components/notification-badge/index.html +65 -0
- package/dist/docs/components/notification-badge/react/index.html +65 -0
- package/dist/docs/components/notification-drawer/index.html +56 -0
- package/dist/docs/components/notification-drawer/react/index.html +56 -0
- package/dist/docs/components/number-input/index.html +72 -0
- package/dist/docs/components/number-input/react/index.html +72 -0
- package/dist/docs/components/overflow-menu/index.html +64 -0
- package/dist/docs/components/overflow-menu/react/index.html +64 -0
- package/dist/docs/components/page/index.html +114 -0
- package/dist/docs/components/page/react/index.html +114 -0
- package/dist/docs/components/pagination/index.html +77 -0
- package/dist/docs/components/pagination/react/index.html +77 -0
- package/dist/docs/components/panel/index.html +196 -0
- package/dist/docs/components/panel/react/index.html +196 -0
- package/dist/docs/components/popover/index.html +89 -0
- package/dist/docs/components/popover/react/index.html +89 -0
- package/dist/docs/components/progress/index.html +101 -0
- package/dist/docs/components/progress/react/index.html +101 -0
- package/dist/docs/components/progress-stepper/index.html +74 -0
- package/dist/docs/components/progress-stepper/react/index.html +74 -0
- package/dist/docs/components/radio/index.html +75 -0
- package/dist/docs/components/radio/react/index.html +75 -0
- package/dist/docs/components/search-input/index.html +76 -0
- package/dist/docs/components/search-input/react/index.html +76 -0
- package/dist/docs/components/select/index.html +129 -0
- package/dist/docs/components/select/react/index.html +129 -0
- package/dist/docs/components/sidebar/index.html +77 -0
- package/dist/docs/components/sidebar/react/index.html +77 -0
- package/dist/docs/components/simple-file-upload/index.html +93 -0
- package/dist/docs/components/simple-file-upload/react/index.html +93 -0
- package/dist/docs/components/simple-list/index.html +59 -0
- package/dist/docs/components/simple-list/react/index.html +59 -0
- package/dist/docs/components/skeleton/index.html +62 -0
- package/dist/docs/components/skeleton/react/index.html +62 -0
- package/dist/docs/components/skip-to-content/index.html +49 -0
- package/dist/docs/components/skip-to-content/react/index.html +49 -0
- package/dist/docs/components/slider/index.html +78 -0
- package/dist/docs/components/slider/react/index.html +78 -0
- package/dist/docs/components/spinner/index.html +59 -0
- package/dist/docs/components/spinner/react/index.html +59 -0
- package/dist/docs/components/switch/index.html +66 -0
- package/dist/docs/components/switch/react/index.html +66 -0
- package/dist/docs/components/tabs/index.html +169 -0
- package/dist/docs/components/tabs/react/index.html +169 -0
- package/dist/docs/components/text-area/index.html +77 -0
- package/dist/docs/components/text-area/react/index.html +77 -0
- package/dist/docs/components/text-input/index.html +71 -0
- package/dist/docs/components/text-input/react/index.html +71 -0
- package/dist/docs/components/text-input-group/index.html +68 -0
- package/dist/docs/components/text-input-group/react/index.html +68 -0
- package/dist/docs/components/tile/index.html +153 -0
- package/dist/docs/components/tile/react-deprecated/index.html +153 -0
- package/dist/docs/components/time-picker/index.html +67 -0
- package/dist/docs/components/time-picker/react/index.html +67 -0
- package/dist/docs/components/timestamp/index.html +75 -0
- package/dist/docs/components/timestamp/react/index.html +75 -0
- package/dist/docs/components/title/index.html +53 -0
- package/dist/docs/components/title/react/index.html +53 -0
- package/dist/docs/components/toggle-group/index.html +74 -0
- package/dist/docs/components/toggle-group/react/index.html +74 -0
- package/dist/docs/components/toolbar/index.html +111 -0
- package/dist/docs/components/toolbar/react/index.html +111 -0
- package/dist/docs/components/tooltip/index.html +65 -0
- package/dist/docs/components/tooltip/react/index.html +65 -0
- package/dist/docs/components/tree-view/index.html +93 -0
- package/dist/docs/components/tree-view/react/index.html +93 -0
- package/dist/docs/components/truncate/index.html +80 -0
- package/dist/docs/components/truncate/react/index.html +80 -0
- package/dist/docs/components/wizard/index.html +120 -0
- package/dist/docs/components/wizard/react/index.html +120 -0
- package/dist/docs/components/wizard/react-deprecated/index.html +372 -0
- package/dist/docs/index.html +43 -0
- package/dist/props.json +1 -0
- package/package.json +8 -4
- package/src/components/AutoLinkHeader.tsx +3 -11
- package/src/components/DocsTables.astro +10 -4
- package/src/components/LiveExample.tsx +2 -0
- package/src/components/PropsTables.tsx +62 -0
- package/src/content.config.ts +5 -3
- package/src/content.ts +1 -15
- package/src/layouts/Main.astro +1 -0
- package/src/pages/[section]/[...page].astro +1 -5
- package/src/pages/[section]/[page]/[...tab].astro +1 -1
- package/.astro/collections/textContent.schema.json +0 -59
- package/dist/_astro/CSSTable.E6iSHjec.js +0 -1
- package/dist/_astro/DropdownList.-xE7qrND.js +0 -1
- package/dist/_astro/LiveExample.CVVccYEB.js +0 -259
- package/dist/_astro/Navigation.CONcolRR.js +0 -1
- package/dist/_astro/PageSidebarBody.CDWZuFeK.js +0 -1
- package/dist/_astro/SearchInput.BNt7BTX_.js +0 -1
- package/dist/_astro/SectionGallery.Dwb-QA5z.js +0 -1
- package/dist/_astro/Toolbar.DNd68Ck-.js +0 -1
- package/dist/_astro/ToolbarContent.C58gpKLu.js +0 -1
- package/dist/_astro/_page_.CtheD08_.css +0 -1
- package/dist/_astro/index.jm6QVFFy.js +0 -16
- package/dist/_worker.js/chunks/AutoLinkHeader_DLgn_YRm.mjs +0 -739
- package/dist/_worker.js/chunks/Button_CBcC0ViE.mjs +0 -709
- package/dist/_worker.js/chunks/CSSTable_C1dV02qV.mjs +0 -18
- package/dist/_worker.js/chunks/DocsTables_Br4g5x5_.mjs +0 -20
- package/dist/_worker.js/chunks/PropsTables_Dcd7znAq.mjs +0 -6628
- package/dist/_worker.js/chunks/angle-down-icon_VyCXUC7F.mjs +0 -3686
- package/dist/_worker.js/chunks/index_CBCp_CJ0.mjs +0 -57
- package/dist/_worker.js/manifest_0KWZohUX.mjs +0 -100
- package/dist/components/accordion/index.html +0 -60
- package/dist/components/accordion/react/index.html +0 -60
- package/dist/components/all-components/index.html +0 -47
- package/dist/design-foundations/typography/index.html +0 -198
- package/dist/design-foundations/usage-and-behavior/index.html +0 -347
- package/dist/get-started/contribute/index.html +0 -94
- package/dist/index.html +0 -43
- package/src/components/PropsTables.astro +0 -52
- /package/{README.md → README.mdx} +0 -0
- /package/dist/{.assetsignore → docs/.assetsignore} +0 -0
- /package/dist/{PF-HorizontalLogo-Color.svg → docs/PF-HorizontalLogo-Color.svg} +0 -0
- /package/dist/{PF-HorizontalLogo-Reverse.svg → docs/PF-HorizontalLogo-Reverse.svg} +0 -0
- /package/dist/{_astro/_page_.Chv_bGyU.css → docs/_astro/AutoLinkHeader.Chv_bGyU.css} +0 -0
- /package/dist/{_astro → docs/_astro}/Button.BVfR1y85.js +0 -0
- /package/dist/{_astro → docs/_astro}/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js +0 -0
- /package/dist/{_astro → docs/_astro}/Content.CYLxURqU.js +0 -0
- /package/dist/{_astro → docs/_astro}/LiveExample.CxJsMvEq.css +0 -0
- /package/dist/{_astro → docs/_astro}/PageContext.BUbWpNW2.js +0 -0
- /package/dist/{_astro → docs/_astro}/PageToggle.Dnbvoa7R.js +0 -0
- /package/dist/{_astro → docs/_astro}/RedHatDisplayVF-Italic.CRpusWc8.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/RedHatDisplayVF.CYDHf1NI.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/RedHatMonoVF-Italic.DGQo2ogW.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/RedHatMonoVF.C4fMH6Vz.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/RedHatTextVF-Italic.Dkj_WqbA.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/RedHatTextVF.wYvZ7prR.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/_page_.DxJDkZPc.css +0 -0
- /package/dist/{_astro → docs/_astro}/angle-left-icon.CfKwuSCS.js +0 -0
- /package/dist/{_astro → docs/_astro}/bars-icon.wdJgEs3A.js +0 -0
- /package/dist/{_astro → docs/_astro}/client.DN8ES6L5.js +0 -0
- /package/dist/{_astro → docs/_astro}/fa-solid-900.DguXoeIz.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/github-icon.DzpohUp_.js +0 -0
- /package/dist/{_astro → docs/_astro}/index.BQFV5hT1.js +0 -0
- /package/dist/{_astro → docs/_astro}/index.CAChmxYj.js +0 -0
- /package/dist/{_astro → docs/_astro}/index.eCxJ45ll.js +0 -0
- /package/dist/{_astro → docs/_astro}/page.BTC3Kf3x.js +0 -0
- /package/dist/{_astro → docs/_astro}/pf-v6-pficon.Dy6oiu9u.woff2 +0 -0
- /package/dist/{_worker.js → docs/_worker.js}/_noop-actions.mjs +0 -0
- /package/dist/{_worker.js/chunks/Accordion_CQUal4ef.mjs → docs/_worker.js/chunks/AboutModal_CrdYiVZ2.mjs} +0 -0
- /package/dist/{_worker.js/chunks/Accordion_R7bP3pwr.mjs → docs/_worker.js/chunks/AboutModal_D3R-r6ju.mjs} +0 -0
- /package/dist/{_worker.js/chunks/AllComponents_BDKlE-WJ.mjs → docs/_worker.js/chunks/Accordion_Dbx8tdfD.mjs} +0 -0
- /package/dist/{_worker.js/chunks/AllComponents_DWDph25H.mjs → docs/_worker.js/chunks/Accordion_sjy0EnPK.mjs} +0 -0
- /package/dist/{_worker.js/chunks/_astro_assets_CfTVyruF.mjs → docs/_worker.js/chunks/ActionList_Bx7eAKgV.mjs} +0 -0
- /package/dist/{_worker.js/chunks/_astro_data-layer-content_CgXoS6Mm.mjs → docs/_worker.js/chunks/ActionList_CuygbYGp.mjs} +0 -0
- /package/dist/{_worker.js/chunks/content-assets_XqCgPAV2.mjs → docs/_worker.js/chunks/Alert_Cgh0pfMA.mjs} +0 -0
- /package/dist/{_worker.js/chunks/content-modules_BbCqcGJp.mjs → docs/_worker.js/chunks/Alert_CplJ22O9.mjs} +0 -0
- /package/dist/{_worker.js/chunks/sharp_MEdXG7Td.mjs → docs/_worker.js/chunks/Avatar_BszzDSZB.mjs} +0 -0
- /package/dist/{_worker.js/pages/_section_/_---page_.astro.mjs → docs/_worker.js/chunks/Avatar_DuNXB-Tl.mjs} +0 -0
- /package/dist/{_worker.js/pages/_section_/_page_/_---tab_.astro.mjs → docs/_worker.js/chunks/BackToTop_B_0NN1kJ.mjs} +0 -0
- /package/dist/{_worker.js/pages/index.astro.mjs → docs/_worker.js/chunks/BackToTop_DKY1zHBL.mjs} +0 -0
- /package/dist/{_worker.js → docs/_worker.js}/chunks/cloudflare-kv-binding_DMly_2Gl.mjs +0 -0
- /package/dist/{_worker.js → docs/_worker.js}/chunks/parse_EttCPxrw.mjs +0 -0
- /package/dist/{_worker.js → docs/_worker.js}/chunks/path_C-ZOwaTP.mjs +0 -0
- /package/dist/{avatarImg.svg → docs/avatarImg.svg} +0 -0
- /package/dist/{avatarImgDark.svg → docs/avatarImgDark.svg} +0 -0
- /package/dist/{content → docs/content}/typography/line-height.png +0 -0
- /package/dist/{favicon.svg → docs/favicon.svg} +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<!DOCTYPE html><html lang="en" data-astro-transition-scope="astro-iidcp2e2-1"> <head><script type="module">const n=e=>{requestAnimationFrame(()=>{document.documentElement.classList.toggle("pf-v6-theme-dark",e==="dark")})};document.addEventListener("astro:before-swap",()=>{const e=localStorage.getItem("theme-preference");n(e||"light")});const o=e=>{const t=document.querySelector(e);t&&t.scrollIntoView({behavior:"smooth"})};document.addEventListener("DOMContentLoaded",()=>{if(window.location.hash){const e=window.location.hash;history.replaceState(null,""," "),setTimeout(()=>{o(e),history.replaceState(null,"",e)},500)}});window.addEventListener("hashchange",()=>{window.location.hash&&o(window.location.hash)});</script><meta charset="utf-8"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><meta name="viewport" content="width=device-width"><meta name="generator" content="Astro v5.9.3"><title>Astro</title><meta name="astro-view-transitions-enabled" content="true"><meta name="astro-view-transitions-fallback" content="animate"><script type="module" src="/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js"></script><link rel="stylesheet" href="/_astro/_page_.BG_fQ4i5.css">
|
|
2
|
+
<link rel="stylesheet" href="/_astro/_page_.DxJDkZPc.css">
|
|
3
|
+
<link rel="stylesheet" href="/_astro/LiveExample.CxJsMvEq.css">
|
|
4
|
+
<link rel="stylesheet" href="/_astro/PropsTables.D6ZI3FGj.css">
|
|
5
|
+
<link rel="stylesheet" href="/_astro/AutoLinkHeader.Chv_bGyU.css"><style>[data-astro-transition-scope="astro-iidcp2e2-1"] { view-transition-name: astro-iidcp2e2-1; }@layer astro { ::view-transition-old(astro-iidcp2e2-1) { animation: none; opacity: 0; mix-blend-mode: normal; }::view-transition-new(astro-iidcp2e2-1) { animation: none; mix-blend-mode: normal; }::view-transition-group(astro-iidcp2e2-1) { animation: none } }[data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-iidcp2e2-1"],
|
|
6
|
+
[data-astro-transition-fallback="old"][data-astro-transition-scope="astro-iidcp2e2-1"] { animation: none; mix-blend-mode: normal; }[data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-iidcp2e2-1"],
|
|
7
|
+
[data-astro-transition-fallback="new"][data-astro-transition-scope="astro-iidcp2e2-1"] { animation: none; mix-blend-mode: normal; }</style><style>[data-astro-transition-scope="astro-xikxfxwm-3"] { view-transition-name: astro-xikxfxwm-3; }@layer astro { ::view-transition-old(astro-xikxfxwm-3) {
|
|
8
|
+
animation-duration: 180ms;
|
|
9
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
10
|
+
animation-fill-mode: both;
|
|
11
|
+
animation-name: astroFadeOut; }::view-transition-new(astro-xikxfxwm-3) {
|
|
12
|
+
animation-duration: 180ms;
|
|
13
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
14
|
+
animation-fill-mode: both;
|
|
15
|
+
animation-name: astroFadeIn; }[data-astro-transition=back]::view-transition-old(astro-xikxfxwm-3) {
|
|
16
|
+
animation-duration: 180ms;
|
|
17
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
18
|
+
animation-fill-mode: both;
|
|
19
|
+
animation-name: astroFadeOut; }[data-astro-transition=back]::view-transition-new(astro-xikxfxwm-3) {
|
|
20
|
+
animation-duration: 180ms;
|
|
21
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
22
|
+
animation-fill-mode: both;
|
|
23
|
+
animation-name: astroFadeIn; } }[data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-xikxfxwm-3"],
|
|
24
|
+
[data-astro-transition-fallback="old"][data-astro-transition-scope="astro-xikxfxwm-3"] {
|
|
25
|
+
animation-duration: 180ms;
|
|
26
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
27
|
+
animation-fill-mode: both;
|
|
28
|
+
animation-name: astroFadeOut; }[data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-xikxfxwm-3"],
|
|
29
|
+
[data-astro-transition-fallback="new"][data-astro-transition-scope="astro-xikxfxwm-3"] {
|
|
30
|
+
animation-duration: 180ms;
|
|
31
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
32
|
+
animation-fill-mode: both;
|
|
33
|
+
animation-name: astroFadeIn; }[data-astro-transition=back][data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-xikxfxwm-3"],
|
|
34
|
+
[data-astro-transition=back][data-astro-transition-fallback="old"][data-astro-transition-scope="astro-xikxfxwm-3"] {
|
|
35
|
+
animation-duration: 180ms;
|
|
36
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
37
|
+
animation-fill-mode: both;
|
|
38
|
+
animation-name: astroFadeOut; }[data-astro-transition=back][data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-xikxfxwm-3"],
|
|
39
|
+
[data-astro-transition=back][data-astro-transition-fallback="new"][data-astro-transition-scope="astro-xikxfxwm-3"] {
|
|
40
|
+
animation-duration: 180ms;
|
|
41
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
42
|
+
animation-fill-mode: both;
|
|
43
|
+
animation-name: astroFadeIn; }</style><style>[data-astro-transition-scope="astro-2e6ke2uy-4"] { view-transition-name: astro-2e6ke2uy-4; }@layer astro { ::view-transition-old(astro-2e6ke2uy-4) { animation: none; opacity: 0; mix-blend-mode: normal; }::view-transition-new(astro-2e6ke2uy-4) { animation: none; mix-blend-mode: normal; }::view-transition-group(astro-2e6ke2uy-4) { animation: none } }[data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-2e6ke2uy-4"],
|
|
44
|
+
[data-astro-transition-fallback="old"][data-astro-transition-scope="astro-2e6ke2uy-4"] { animation: none; mix-blend-mode: normal; }[data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-2e6ke2uy-4"],
|
|
45
|
+
[data-astro-transition-fallback="new"][data-astro-transition-scope="astro-2e6ke2uy-4"] { animation: none; mix-blend-mode: normal; }</style></head> <body> <div class="pf-v6-c-page"> <script>(()=>{var l=(n,t)=>{let i=async()=>{await(await n())()},e=typeof t.value=="object"?t.value:void 0,s={timeout:e==null?void 0:e.timeout};"requestIdleCallback"in window?window.requestIdleCallback(i,s):setTimeout(i,s.timeout||200)};(self.Astro||(self.Astro={})).idle=l;window.dispatchEvent(new Event("astro:idle"));})();</script><header class="pf-v6-c-masthead pf-m-display-inline-on-md"> <div class="pf-v6-c-masthead__main"> <span class="pf-v6-c-masthead__toggle"> <astro-island uid="1n9kTp" prefix="r5" component-url="/_astro/PageToggle.Dnbvoa7R.js" component-export="PageToggle" renderer-url="/_astro/client.DN8ES6L5.js" props="{"data-astro-transition-persist":[0,"astro-u5p5alki-2"]}" ssr client="idle" opts="{"name":"PageToggle","value":true}" data-astro-transition-persist="astro-u5p5alki-2" await-children><button id="nav-toggle" aria-expanded="true" aria-label="Global navigation" class="pf-v6-c-button pf-m-plain" type="button" data-ouia-component-type="PF6/Button" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Button-plain-37"><span class="pf-v6-c-button__text"><svg class="pf-v6-svg" viewBox="0 0 448 512" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em"><path d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"></path></svg></span></button><!--astro:end--></astro-island> </span> <div class="pf-v6-c-masthead__brand"> <a class="pf-v6-c-masthead__logo" tabindex="0" href="/"> <img class="pf-v6-c-brand" style="--pf-v6-c-brand--Height:36px" src="/PF-HorizontalLogo-Color.svg" alt="PatternFly"/> </a> </div> </div> <div class="pf-v6-c-masthead__content"> <astro-island uid="Z36Sff" prefix="r7" component-url="/_astro/Toolbar.BNjGRsAQ.js" component-export="Toolbar" renderer-url="/_astro/client.DN8ES6L5.js" props="{}" ssr client="idle" opts="{"name":"ReactToolbar","value":true}" await-children><div class="pf-v6-c-toolbar pf-m-static" id="toolbar" data-ouia-component-type="PF6/Toolbar" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Toolbar-13"><div class="pf-v6-c-toolbar__content"><div class="pf-v6-c-toolbar__content-section"><div class="pf-v6-c-toolbar__group pf-m-action-group-plain pf-m-align-end pf-m-gap-none pf-m-gap-md-on-md"><div class="pf-v6-c-toolbar__item"></div><div class="pf-v6-c-toolbar__item"><div class="pf-v6-c-input-group ws-global-search"><div class="pf-v6-c-input-group__item"><button aria-expanded="false" aria-label="Expandable search input toggle" class="pf-v6-c-button pf-m-plain" type="button" data-ouia-component-type="PF6/Button" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Button-plain-38"><span class="pf-v6-c-button__icon"><svg class="pf-v6-svg" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em"><path d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"></path></svg></span></button></div></div></div><div class="pf-v6-c-toolbar__item"><a href="//github.com/patternfly" target="top" aria-label="PatternFly GitHub page" class="pf-v6-c-button pf-m-plain" data-ouia-component-type="PF6/Button" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Button-plain-39"><span class="pf-v6-c-button__text"><svg class="pf-v6-svg" viewBox="0 0 496 512" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em"><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path></svg></span></a></div><div class="pf-v6-c-toolbar__item"><button class="pf-v6-c-menu-toggle" type="button" aria-expanded="false" data-ouia-component-type="PF6/MenuToggle" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-MenuToggle-13"><span class="pf-v6-c-menu-toggle__text">Release 6.1.0</span><span class="pf-v6-c-menu-toggle__controls"><span class="pf-v6-c-menu-toggle__toggle-icon"><svg class="pf-v6-svg" viewBox="0 0 320 512" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em"><path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"></path></svg></span></span></button></div></div></div></div><div class="pf-v6-c-toolbar__content pf-m-hidden" hidden=""><div class="pf-v6-c-toolbar__group"></div></div></div><!--astro:end--></astro-island> </div> </header> <astro-island uid="193Wv7" component-url="/_astro/Navigation.B2RHZcqO.js" component-export="Navigation" renderer-url="/_astro/client.DN8ES6L5.js" props="{"navData":[1,[[1,[[0,{"id":[0,"src/components/aboutmodal/examples/aboutmodal"],"data":[0,{"id":[0,"About modal"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/accordion/examples/accordion"],"data":[0,{"id":[0,"Accordion"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/actionlist/examples/actionlist"],"data":[0,{"id":[0,"Action list"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/alert/examples/alert"],"data":[0,{"id":[0,"Alert"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/avatar/examples/avatar"],"data":[0,{"id":[0,"Avatar"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/backtotop/examples/backtotop"],"data":[0,{"id":[0,"Back to top"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/backdrop/examples/backdrop"],"data":[0,{"id":[0,"Backdrop"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/backgroundimage/examples/backgroundimage"],"data":[0,{"id":[0,"Background image"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/badge/examples/badge"],"data":[0,{"id":[0,"Badge"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/banner/examples/banner"],"data":[0,{"id":[0,"Banner"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/brand/examples/brand"],"data":[0,{"id":[0,"Brand"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/breadcrumb/examples/breadcrumb"],"data":[0,{"id":[0,"Breadcrumb"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/button/examples/button"],"data":[0,{"id":[0,"Button"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/calendarmonth/examples/calendarmonth"],"data":[0,{"id":[0,"Calendar month"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/card/examples/card"],"data":[0,{"id":[0,"Card"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/checkbox/examples/checkbox"],"data":[0,{"id":[0,"Checkbox"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/deprecated/components/chip/examples/chip"],"data":[0,{"id":[0,"Chip"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/clipboardcopy/examples/clipboardcopy"],"data":[0,{"id":[0,"Clipboard copy"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/codeblock/examples/codeblock"],"data":[0,{"id":[0,"Code block"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/content/examples/content"],"data":[0,{"id":[0,"Content"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/datalist/examples/datalist"],"data":[0,{"id":[0,"Data list"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/datepicker/examples/datepicker"],"data":[0,{"id":[0,"Date picker"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/descriptionlist/examples/descriptionlist"],"data":[0,{"id":[0,"Description list"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/divider/examples/divider"],"data":[0,{"id":[0,"Divider"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/deprecated/components/dragdrop/examples/dragdrop"],"data":[0,{"id":[0,"Drag and drop"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/drawer/examples/drawer"],"data":[0,{"id":[0,"Drawer"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/dropdown/examples/dropdown"],"data":[0,{"id":[0,"Dropdown"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/duallistselector/examples/duallistselector"],"data":[0,{"id":[0,"Dual list selector"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/emptystate/examples/emptystate"],"data":[0,{"id":[0,"Empty state"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/expandablesection/examples/expandablesection"],"data":[0,{"id":[0,"Expandable section"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/form/examples/form"],"data":[0,{"id":[0,"Form"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/formselect/examples/formselect"],"data":[0,{"id":[0,"Form select"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/helpertext/examples/helpertext"],"data":[0,{"id":[0,"Helper text"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/hint/examples/hint"],"data":[0,{"id":[0,"Hint"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/icon/examples/icon"],"data":[0,{"id":[0,"Icon"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/inputgroup/examples/inputgroup"],"data":[0,{"id":[0,"Input group"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/jumplinks/examples/jumplinks"],"data":[0,{"id":[0,"Jump links"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/label/examples/label"],"data":[0,{"id":[0,"Label"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/list/examples/list"],"data":[0,{"id":[0,"List"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/loginpage/examples/loginpage"],"data":[0,{"id":[0,"Login page"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/masthead/examples/masthead"],"data":[0,{"id":[0,"Masthead"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/menu/examples/menu"],"data":[0,{"id":[0,"Menu"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/menutoggle/examples/menutoggle"],"data":[0,{"id":[0,"Menu toggle"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/modal/examples/modal"],"data":[0,{"id":[0,"Modal"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/multiplefileupload/examples/multiplefileupload"],"data":[0,{"id":[0,"Multiple file upload"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/nav/examples/nav"],"data":[0,{"id":[0,"Navigation"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/notificationbadge/examples/notificationbadge"],"data":[0,{"id":[0,"Notification badge"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/notificationdrawer/examples/notificationdrawer"],"data":[0,{"id":[0,"Notification drawer"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/numberinput/examples/numberinput"],"data":[0,{"id":[0,"Number input"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/overflowmenu/examples/overflowmenu"],"data":[0,{"id":[0,"Overflow menu"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/page/examples/page"],"data":[0,{"id":[0,"Page"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/pagination/examples/pagination"],"data":[0,{"id":[0,"Pagination"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/panel/examples/panel"],"data":[0,{"id":[0,"Panel"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/popover/examples/popover"],"data":[0,{"id":[0,"Popover"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/progress/examples/progress"],"data":[0,{"id":[0,"Progress"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/progressstepper/examples/progressstepper"],"data":[0,{"id":[0,"Progress stepper"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/radio/examples/radio"],"data":[0,{"id":[0,"Radio"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/searchinput/examples/searchinput"],"data":[0,{"id":[0,"Search input"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/select/examples/select"],"data":[0,{"id":[0,"Select"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/sidebar/examples/sidebar"],"data":[0,{"id":[0,"Sidebar"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/fileupload/examples/fileupload"],"data":[0,{"id":[0,"Simple file upload"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/simplelist/examples/simplelist"],"data":[0,{"id":[0,"Simple list"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/skeleton/examples/skeleton"],"data":[0,{"id":[0,"Skeleton"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/skiptocontent/examples/skiptocontent"],"data":[0,{"id":[0,"Skip to content"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/slider/examples/slider"],"data":[0,{"id":[0,"Slider"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/spinner/examples/spinner"],"data":[0,{"id":[0,"Spinner"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/switch/examples/switch"],"data":[0,{"id":[0,"Switch"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/tabs/examples/tabs"],"data":[0,{"id":[0,"Tabs"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/textarea/examples/textarea"],"data":[0,{"id":[0,"Text area"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/textinput/examples/textinput"],"data":[0,{"id":[0,"Text input"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/textinputgroup/examples/textinputgroup"],"data":[0,{"id":[0,"Text input group"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/deprecated/components/tile/examples/tile"],"data":[0,{"id":[0,"Tile"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/timepicker/examples/timepicker"],"data":[0,{"id":[0,"Time picker"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/timestamp/examples/timestamp"],"data":[0,{"id":[0,"Timestamp"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/title/examples/title"],"data":[0,{"id":[0,"Title"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/togglegroup/examples/togglegroup"],"data":[0,{"id":[0,"Toggle group"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/toolbar/examples/toolbar"],"data":[0,{"id":[0,"Toolbar"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/tooltip/examples/tooltip"],"data":[0,{"id":[0,"Tooltip"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/treeview/examples/treeview"],"data":[0,{"id":[0,"Tree view"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/truncate/examples/truncate"],"data":[0,{"id":[0,"Truncate"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/wizard/examples/wizard"],"data":[0,{"id":[0,"Wizard"],"section":[0,"components"],"sortValue":[0]}]}]]]]],"data-astro-transition-scope":[0,"astro-xikxfxwm-3"]}" ssr client="only" opts="{"name":"ReactNav","value":"react"}" data-astro-transition-scope="astro-xikxfxwm-3"></astro-island> <div class="pf-v6-c-page__main-container"> <main class="pf-v6-c-page__main"> <section class="pf-v6-c-page__main-section"><div class="pf-v6-c-page__main-body"> <section id="ws-sticky-nav-tabs" class="pf-v6-c-page__main-tabs pf-m-sticky-top"><div class="pf-v6-c-page__main-body"> <div class="pf-v6-c-tabs pf-m-page-insets pf-m-no-border-bottom"> <ul class="pf-v6-c-tabs__list"> <li class="pf-v6-c-tabs__item"> <a class="pf-v6-c-tabs__link" href="/components/calendar-month/react"> React </a> </li> </ul> </div> </div></section><section id="main-content" class="pf-v6-c-page__main-section pf-m-fill"><div class="pf-v6-c-page__main-body"> <h2 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-150" data-pf-content="true" class="pf-v6-c-content--h2">Examples</h2>
|
|
46
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-151" data-pf-content="true" class="pf-v6-c-content--h3">Selectable date</h3>
|
|
47
|
+
|
|
48
|
+
<style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).only=e;window.dispatchEvent(new Event("astro:only"));})();</script><script>(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>1/0*t},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="1V3B8d" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { useState } from 'react';\nimport { CalendarMonth, Title, CalendarMonthInlineProps } from '@patternfly/react-core';\n\nexport const CalendarMonthSelectableDate: React.FunctionComponent = () => {\n const [date, setDate] = useState(new Date(2020, 10, 24));\n\n const onMonthChange = (\n _event: React.MouseEvent | React.ChangeEvent | React.FormEvent<HTMLInputElement> | undefined,\n newDate: Date\n ) => {\n // eslint-disable-next-line no-console\n console.log(`updated month: ${newDate.getMonth()}, updated year: ${newDate.getFullYear()}`);\n };\n\n const inlineProps: CalendarMonthInlineProps = {\n component: 'article',\n title: (\n <Title headingLevel=\"h4\" id=\"favorite-date\">\n Select your favorite date\n </Title>\n ),\n ariaLabelledby: 'favorite-date'\n };\n\n return (\n <>\n <CalendarMonth\n date={date}\n onChange={(_event: React.MouseEvent<HTMLButtonElement, MouseEvent>, date: Date) => setDate(date)}\n onMonthChange={onMonthChange}\n inlineProps={inlineProps}\n />\n <pre>Selected date: {date.toString()}</pre>\n </>\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
49
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-152" data-pf-content="true" class="pf-v6-c-content--h3">Date range</h3>
|
|
50
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-154" data-pf-content="true" class="pf-v6-c-content--p">In this example, there are 2 dates selected: a range start date (via the <code>rangeStart</code> prop) and a range end date (via the <code>date</code> prop). Additionally, any dates prior to the range start date are disabled by passing in an array of functions to the <code>validators</code> prop. In this case a single function is passed in, which checks whether a date is greater than or equal to the range start date.</p>
|
|
51
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-155" data-pf-content="true" class="pf-v6-c-content--p">For this example, these dates are static and cannot be updated. For an interactive demo, see our <a data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-153" data-pf-content="true" class="pf-v6-c-content--a">Date picker demos</a>.</p>
|
|
52
|
+
|
|
53
|
+
<astro-island uid="1eaBRU" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { CalendarMonth, Title, CalendarMonthInlineProps } from '@patternfly/react-core';\n\nexport const CalendarMonthDateRange: React.FunctionComponent = () => {\n const startDate = new Date(2020, 10, 11);\n const endDate = new Date(2020, 10, 24);\n const disablePreStartDates = (date: Date) => date >= startDate;\n\n const inlineProps: CalendarMonthInlineProps = {\n component: 'article',\n title: (\n <Title id=\"display-range\" headingLevel=\"h4\">\n Calendar month displaying a range\n </Title>\n ),\n ariaLabelledby: 'display-range'\n };\n\n return (\n <CalendarMonth\n validators={[disablePreStartDates]}\n date={endDate}\n rangeStart={startDate}\n inlineProps={inlineProps}\n />\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island> <div class="pf-v6-l-stack pf-m-gutter"><div class="pf-v6-l-stack__item pf-v6-u-mt-md"><astro-island uid="1CBv7K" component-url="/_astro/PropsTables.YkW1puJk.js" component-export="PropsTables" renderer-url="/_astro/client.DN8ES6L5.js" props="{"propComponents":[1,[[0,"CalendarMonth"],[0,"CalendarFormat"],[0,"CalendarMonthInlineProps"]]],"url":[7,"http://localhost:4321/components/calendar-month/react/"]}" ssr client="only" opts="{"name":"PropsTables","value":"react"}"></astro-island></div><div class="pf-v6-l-stack__item"><div class="pf-v6-l-stack pf-m-gutter"><div class="pf-v6-l-stack__item"><div class="pf-v6-l-flex pf-m-space-items-sm pf-m-align-items-center"><div class=""><h2 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-149" id="css-variables" tabindex="-1" data-pf-content="true" class="pf-v6-c-content--h2 pf-m-editorial ws-heading pf-v6-c-content--h2"><a href="#css-variables" class="ws-heading-anchor" tabindex="-1"><svg class="pf-v6-svg ws-heading-anchor-icon" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em" style="vertical-align:middle"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"></path></svg></a>
|
|
54
|
+
CSS variables
|
|
55
|
+
</h2></div></div></div><div class="pf-v6-l-stack__item"><astro-island uid="Z2lqin8" component-url="/_astro/CSSTable.-Emc9iTg.js" component-export="CSSTable" renderer-url="/_astro/client.DN8ES6L5.js" props="{"autoLinkHeader":[0,false],"cssPrefix":[0,"pf-v6-c-calendar-month"]}" ssr client="only" opts="{"name":"CSSTableComponent","value":"react"}"></astro-island></div></div></div></div> </div></section> </div></section> </main> </div> </div> <script type="module">try{localStorage.getItem("theme-preference")==="dark"&&document.documentElement.classList.add("pf-v6-theme-dark")}catch(e){console.error("Failed to set initial theme:",e)}</script></body></html>
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
<!DOCTYPE html><html lang="en" data-astro-transition-scope="astro-iidcp2e2-1"> <head><script type="module">const n=e=>{requestAnimationFrame(()=>{document.documentElement.classList.toggle("pf-v6-theme-dark",e==="dark")})};document.addEventListener("astro:before-swap",()=>{const e=localStorage.getItem("theme-preference");n(e||"light")});const o=e=>{const t=document.querySelector(e);t&&t.scrollIntoView({behavior:"smooth"})};document.addEventListener("DOMContentLoaded",()=>{if(window.location.hash){const e=window.location.hash;history.replaceState(null,""," "),setTimeout(()=>{o(e),history.replaceState(null,"",e)},500)}});window.addEventListener("hashchange",()=>{window.location.hash&&o(window.location.hash)});</script><meta charset="utf-8"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><meta name="viewport" content="width=device-width"><meta name="generator" content="Astro v5.9.3"><title>Astro</title><meta name="astro-view-transitions-enabled" content="true"><meta name="astro-view-transitions-fallback" content="animate"><script type="module" src="/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js"></script><link rel="stylesheet" href="/_astro/_page_.BG_fQ4i5.css">
|
|
2
|
+
<link rel="stylesheet" href="/_astro/AutoLinkHeader.Chv_bGyU.css">
|
|
3
|
+
<link rel="stylesheet" href="/_astro/PropsTables.D6ZI3FGj.css">
|
|
4
|
+
<link rel="stylesheet" href="/_astro/LiveExample.CxJsMvEq.css">
|
|
5
|
+
<link rel="stylesheet" href="/_astro/_page_.DxJDkZPc.css"><style>[data-astro-transition-scope="astro-iidcp2e2-1"] { view-transition-name: astro-iidcp2e2-1; }@layer astro { ::view-transition-old(astro-iidcp2e2-1) { animation: none; opacity: 0; mix-blend-mode: normal; }::view-transition-new(astro-iidcp2e2-1) { animation: none; mix-blend-mode: normal; }::view-transition-group(astro-iidcp2e2-1) { animation: none } }[data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-iidcp2e2-1"],
|
|
6
|
+
[data-astro-transition-fallback="old"][data-astro-transition-scope="astro-iidcp2e2-1"] { animation: none; mix-blend-mode: normal; }[data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-iidcp2e2-1"],
|
|
7
|
+
[data-astro-transition-fallback="new"][data-astro-transition-scope="astro-iidcp2e2-1"] { animation: none; mix-blend-mode: normal; }</style><style>[data-astro-transition-scope="astro-xikxfxwm-3"] { view-transition-name: astro-xikxfxwm-3; }@layer astro { ::view-transition-old(astro-xikxfxwm-3) {
|
|
8
|
+
animation-duration: 180ms;
|
|
9
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
10
|
+
animation-fill-mode: both;
|
|
11
|
+
animation-name: astroFadeOut; }::view-transition-new(astro-xikxfxwm-3) {
|
|
12
|
+
animation-duration: 180ms;
|
|
13
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
14
|
+
animation-fill-mode: both;
|
|
15
|
+
animation-name: astroFadeIn; }[data-astro-transition=back]::view-transition-old(astro-xikxfxwm-3) {
|
|
16
|
+
animation-duration: 180ms;
|
|
17
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
18
|
+
animation-fill-mode: both;
|
|
19
|
+
animation-name: astroFadeOut; }[data-astro-transition=back]::view-transition-new(astro-xikxfxwm-3) {
|
|
20
|
+
animation-duration: 180ms;
|
|
21
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
22
|
+
animation-fill-mode: both;
|
|
23
|
+
animation-name: astroFadeIn; } }[data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-xikxfxwm-3"],
|
|
24
|
+
[data-astro-transition-fallback="old"][data-astro-transition-scope="astro-xikxfxwm-3"] {
|
|
25
|
+
animation-duration: 180ms;
|
|
26
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
27
|
+
animation-fill-mode: both;
|
|
28
|
+
animation-name: astroFadeOut; }[data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-xikxfxwm-3"],
|
|
29
|
+
[data-astro-transition-fallback="new"][data-astro-transition-scope="astro-xikxfxwm-3"] {
|
|
30
|
+
animation-duration: 180ms;
|
|
31
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
32
|
+
animation-fill-mode: both;
|
|
33
|
+
animation-name: astroFadeIn; }[data-astro-transition=back][data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-xikxfxwm-3"],
|
|
34
|
+
[data-astro-transition=back][data-astro-transition-fallback="old"][data-astro-transition-scope="astro-xikxfxwm-3"] {
|
|
35
|
+
animation-duration: 180ms;
|
|
36
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
37
|
+
animation-fill-mode: both;
|
|
38
|
+
animation-name: astroFadeOut; }[data-astro-transition=back][data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-xikxfxwm-3"],
|
|
39
|
+
[data-astro-transition=back][data-astro-transition-fallback="new"][data-astro-transition-scope="astro-xikxfxwm-3"] {
|
|
40
|
+
animation-duration: 180ms;
|
|
41
|
+
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
42
|
+
animation-fill-mode: both;
|
|
43
|
+
animation-name: astroFadeIn; }</style><style>[data-astro-transition-scope="astro-2e6ke2uy-4"] { view-transition-name: astro-2e6ke2uy-4; }@layer astro { ::view-transition-old(astro-2e6ke2uy-4) { animation: none; opacity: 0; mix-blend-mode: normal; }::view-transition-new(astro-2e6ke2uy-4) { animation: none; mix-blend-mode: normal; }::view-transition-group(astro-2e6ke2uy-4) { animation: none } }[data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-2e6ke2uy-4"],
|
|
44
|
+
[data-astro-transition-fallback="old"][data-astro-transition-scope="astro-2e6ke2uy-4"] { animation: none; mix-blend-mode: normal; }[data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-2e6ke2uy-4"],
|
|
45
|
+
[data-astro-transition-fallback="new"][data-astro-transition-scope="astro-2e6ke2uy-4"] { animation: none; mix-blend-mode: normal; }</style></head> <body> <div class="pf-v6-c-page"> <script>(()=>{var l=(n,t)=>{let i=async()=>{await(await n())()},e=typeof t.value=="object"?t.value:void 0,s={timeout:e==null?void 0:e.timeout};"requestIdleCallback"in window?window.requestIdleCallback(i,s):setTimeout(i,s.timeout||200)};(self.Astro||(self.Astro={})).idle=l;window.dispatchEvent(new Event("astro:idle"));})();</script><header class="pf-v6-c-masthead pf-m-display-inline-on-md"> <div class="pf-v6-c-masthead__main"> <span class="pf-v6-c-masthead__toggle"> <astro-island uid="1vznhv" prefix="r5" component-url="/_astro/PageToggle.Dnbvoa7R.js" component-export="PageToggle" renderer-url="/_astro/client.DN8ES6L5.js" props="{"data-astro-transition-persist":[0,"astro-u5p5alki-2"]}" ssr client="idle" opts="{"name":"PageToggle","value":true}" data-astro-transition-persist="astro-u5p5alki-2" await-children><button id="nav-toggle" aria-expanded="true" aria-label="Global navigation" class="pf-v6-c-button pf-m-plain" type="button" data-ouia-component-type="PF6/Button" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Button-plain-298"><span class="pf-v6-c-button__text"><svg class="pf-v6-svg" viewBox="0 0 448 512" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em"><path d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"></path></svg></span></button><!--astro:end--></astro-island> </span> <div class="pf-v6-c-masthead__brand"> <a class="pf-v6-c-masthead__logo" tabindex="0" href="/"> <img class="pf-v6-c-brand" style="--pf-v6-c-brand--Height:36px" src="/PF-HorizontalLogo-Color.svg" alt="PatternFly"/> </a> </div> </div> <div class="pf-v6-c-masthead__content"> <astro-island uid="1JVEB9" prefix="r7" component-url="/_astro/Toolbar.BNjGRsAQ.js" component-export="Toolbar" renderer-url="/_astro/client.DN8ES6L5.js" props="{}" ssr client="idle" opts="{"name":"ReactToolbar","value":true}" await-children><div class="pf-v6-c-toolbar pf-m-static" id="toolbar" data-ouia-component-type="PF6/Toolbar" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Toolbar-100"><div class="pf-v6-c-toolbar__content"><div class="pf-v6-c-toolbar__content-section"><div class="pf-v6-c-toolbar__group pf-m-action-group-plain pf-m-align-end pf-m-gap-none pf-m-gap-md-on-md"><div class="pf-v6-c-toolbar__item"></div><div class="pf-v6-c-toolbar__item"><div class="pf-v6-c-input-group ws-global-search"><div class="pf-v6-c-input-group__item"><button aria-expanded="false" aria-label="Expandable search input toggle" class="pf-v6-c-button pf-m-plain" type="button" data-ouia-component-type="PF6/Button" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Button-plain-299"><span class="pf-v6-c-button__icon"><svg class="pf-v6-svg" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em"><path d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"></path></svg></span></button></div></div></div><div class="pf-v6-c-toolbar__item"><a href="//github.com/patternfly" target="top" aria-label="PatternFly GitHub page" class="pf-v6-c-button pf-m-plain" data-ouia-component-type="PF6/Button" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Button-plain-300"><span class="pf-v6-c-button__text"><svg class="pf-v6-svg" viewBox="0 0 496 512" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em"><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path></svg></span></a></div><div class="pf-v6-c-toolbar__item"><button class="pf-v6-c-menu-toggle" type="button" aria-expanded="false" data-ouia-component-type="PF6/MenuToggle" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-MenuToggle-100"><span class="pf-v6-c-menu-toggle__text">Release 6.1.0</span><span class="pf-v6-c-menu-toggle__controls"><span class="pf-v6-c-menu-toggle__toggle-icon"><svg class="pf-v6-svg" viewBox="0 0 320 512" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em"><path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"></path></svg></span></span></button></div></div></div></div><div class="pf-v6-c-toolbar__content pf-m-hidden" hidden=""><div class="pf-v6-c-toolbar__group"></div></div></div><!--astro:end--></astro-island> </div> </header> <astro-island uid="193Wv7" component-url="/_astro/Navigation.B2RHZcqO.js" component-export="Navigation" renderer-url="/_astro/client.DN8ES6L5.js" props="{"navData":[1,[[1,[[0,{"id":[0,"src/components/aboutmodal/examples/aboutmodal"],"data":[0,{"id":[0,"About modal"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/accordion/examples/accordion"],"data":[0,{"id":[0,"Accordion"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/actionlist/examples/actionlist"],"data":[0,{"id":[0,"Action list"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/alert/examples/alert"],"data":[0,{"id":[0,"Alert"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/avatar/examples/avatar"],"data":[0,{"id":[0,"Avatar"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/backtotop/examples/backtotop"],"data":[0,{"id":[0,"Back to top"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/backdrop/examples/backdrop"],"data":[0,{"id":[0,"Backdrop"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/backgroundimage/examples/backgroundimage"],"data":[0,{"id":[0,"Background image"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/badge/examples/badge"],"data":[0,{"id":[0,"Badge"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/banner/examples/banner"],"data":[0,{"id":[0,"Banner"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/brand/examples/brand"],"data":[0,{"id":[0,"Brand"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/breadcrumb/examples/breadcrumb"],"data":[0,{"id":[0,"Breadcrumb"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/button/examples/button"],"data":[0,{"id":[0,"Button"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/calendarmonth/examples/calendarmonth"],"data":[0,{"id":[0,"Calendar month"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/card/examples/card"],"data":[0,{"id":[0,"Card"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/checkbox/examples/checkbox"],"data":[0,{"id":[0,"Checkbox"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/deprecated/components/chip/examples/chip"],"data":[0,{"id":[0,"Chip"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/clipboardcopy/examples/clipboardcopy"],"data":[0,{"id":[0,"Clipboard copy"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/codeblock/examples/codeblock"],"data":[0,{"id":[0,"Code block"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/content/examples/content"],"data":[0,{"id":[0,"Content"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/datalist/examples/datalist"],"data":[0,{"id":[0,"Data list"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/datepicker/examples/datepicker"],"data":[0,{"id":[0,"Date picker"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/descriptionlist/examples/descriptionlist"],"data":[0,{"id":[0,"Description list"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/divider/examples/divider"],"data":[0,{"id":[0,"Divider"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/deprecated/components/dragdrop/examples/dragdrop"],"data":[0,{"id":[0,"Drag and drop"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/drawer/examples/drawer"],"data":[0,{"id":[0,"Drawer"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/dropdown/examples/dropdown"],"data":[0,{"id":[0,"Dropdown"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/duallistselector/examples/duallistselector"],"data":[0,{"id":[0,"Dual list selector"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/emptystate/examples/emptystate"],"data":[0,{"id":[0,"Empty state"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/expandablesection/examples/expandablesection"],"data":[0,{"id":[0,"Expandable section"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/form/examples/form"],"data":[0,{"id":[0,"Form"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/formselect/examples/formselect"],"data":[0,{"id":[0,"Form select"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/helpertext/examples/helpertext"],"data":[0,{"id":[0,"Helper text"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/hint/examples/hint"],"data":[0,{"id":[0,"Hint"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/icon/examples/icon"],"data":[0,{"id":[0,"Icon"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/inputgroup/examples/inputgroup"],"data":[0,{"id":[0,"Input group"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/jumplinks/examples/jumplinks"],"data":[0,{"id":[0,"Jump links"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/label/examples/label"],"data":[0,{"id":[0,"Label"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/list/examples/list"],"data":[0,{"id":[0,"List"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/loginpage/examples/loginpage"],"data":[0,{"id":[0,"Login page"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/masthead/examples/masthead"],"data":[0,{"id":[0,"Masthead"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/menu/examples/menu"],"data":[0,{"id":[0,"Menu"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/menutoggle/examples/menutoggle"],"data":[0,{"id":[0,"Menu toggle"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/modal/examples/modal"],"data":[0,{"id":[0,"Modal"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/multiplefileupload/examples/multiplefileupload"],"data":[0,{"id":[0,"Multiple file upload"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/nav/examples/nav"],"data":[0,{"id":[0,"Navigation"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/notificationbadge/examples/notificationbadge"],"data":[0,{"id":[0,"Notification badge"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/notificationdrawer/examples/notificationdrawer"],"data":[0,{"id":[0,"Notification drawer"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/numberinput/examples/numberinput"],"data":[0,{"id":[0,"Number input"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/overflowmenu/examples/overflowmenu"],"data":[0,{"id":[0,"Overflow menu"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/page/examples/page"],"data":[0,{"id":[0,"Page"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/pagination/examples/pagination"],"data":[0,{"id":[0,"Pagination"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/panel/examples/panel"],"data":[0,{"id":[0,"Panel"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/popover/examples/popover"],"data":[0,{"id":[0,"Popover"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/progress/examples/progress"],"data":[0,{"id":[0,"Progress"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/progressstepper/examples/progressstepper"],"data":[0,{"id":[0,"Progress stepper"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/radio/examples/radio"],"data":[0,{"id":[0,"Radio"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/searchinput/examples/searchinput"],"data":[0,{"id":[0,"Search input"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/select/examples/select"],"data":[0,{"id":[0,"Select"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/sidebar/examples/sidebar"],"data":[0,{"id":[0,"Sidebar"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/fileupload/examples/fileupload"],"data":[0,{"id":[0,"Simple file upload"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/simplelist/examples/simplelist"],"data":[0,{"id":[0,"Simple list"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/skeleton/examples/skeleton"],"data":[0,{"id":[0,"Skeleton"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/skiptocontent/examples/skiptocontent"],"data":[0,{"id":[0,"Skip to content"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/slider/examples/slider"],"data":[0,{"id":[0,"Slider"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/spinner/examples/spinner"],"data":[0,{"id":[0,"Spinner"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/switch/examples/switch"],"data":[0,{"id":[0,"Switch"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/tabs/examples/tabs"],"data":[0,{"id":[0,"Tabs"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/textarea/examples/textarea"],"data":[0,{"id":[0,"Text area"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/textinput/examples/textinput"],"data":[0,{"id":[0,"Text input"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/textinputgroup/examples/textinputgroup"],"data":[0,{"id":[0,"Text input group"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/deprecated/components/tile/examples/tile"],"data":[0,{"id":[0,"Tile"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/timepicker/examples/timepicker"],"data":[0,{"id":[0,"Time picker"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/timestamp/examples/timestamp"],"data":[0,{"id":[0,"Timestamp"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/title/examples/title"],"data":[0,{"id":[0,"Title"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/togglegroup/examples/togglegroup"],"data":[0,{"id":[0,"Toggle group"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/toolbar/examples/toolbar"],"data":[0,{"id":[0,"Toolbar"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/tooltip/examples/tooltip"],"data":[0,{"id":[0,"Tooltip"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/treeview/examples/treeview"],"data":[0,{"id":[0,"Tree view"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/truncate/examples/truncate"],"data":[0,{"id":[0,"Truncate"],"section":[0,"components"],"sortValue":[0]}]}],[0,{"id":[0,"src/components/wizard/examples/wizard"],"data":[0,{"id":[0,"Wizard"],"section":[0,"components"],"sortValue":[0]}]}]]]]],"data-astro-transition-scope":[0,"astro-xikxfxwm-3"]}" ssr client="only" opts="{"name":"ReactNav","value":"react"}" data-astro-transition-scope="astro-xikxfxwm-3"></astro-island> <div class="pf-v6-c-page__main-container"> <main class="pf-v6-c-page__main"> <section class="pf-v6-c-page__main-section"><div class="pf-v6-c-page__main-body"> <section id="ws-sticky-nav-tabs" class="pf-v6-c-page__main-tabs pf-m-sticky-top"><div class="pf-v6-c-page__main-body"> <div class="pf-v6-c-tabs pf-m-page-insets pf-m-no-border-bottom"> <ul class="pf-v6-c-tabs__list"> <li class="pf-v6-c-tabs__item pf-m-current"> <a class="pf-v6-c-tabs__link" href="/components/card/react"> React </a> </li> </ul> </div> </div></section><section id="main-content" class="pf-v6-c-page__main-section pf-m-fill"><div class="pf-v6-c-page__main-body"> <h2 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1794" data-pf-content="true" class="pf-v6-c-content--h2">Examples</h2>
|
|
46
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1795" data-pf-content="true" class="pf-v6-c-content--h3">Basic cards</h3>
|
|
47
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1827" data-pf-content="true" class="pf-v6-c-content--p">Basic cards typically have a <code><CardTitle></code>, <code><CardBody></code> and <code><CardFooter></code>. You may omit these components as needed, but it is recommended to at least include a <code><CardBody></code> to provide details about the card item.</p>
|
|
48
|
+
|
|
49
|
+
<style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).only=e;window.dispatchEvent(new Event("astro:only"));})();</script><script>(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>1/0*t},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="1C9OJ0" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { Card, CardTitle, CardBody, CardFooter } from '@patternfly/react-core';\n\nexport const CardBasic: React.FunctionComponent = () => (\n <Card ouiaId=\"BasicCard\">\n <CardTitle>Title</CardTitle>\n <CardBody>Body</CardBody>\n <CardFooter>Footer</CardFooter>\n </Card>\n);\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
50
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1796" data-pf-content="true" class="pf-v6-c-content--h3">Secondary cards</h3>
|
|
51
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1828" data-pf-content="true" class="pf-v6-c-content--p">You can apply secondary background color styling to a card by setting the <code>variant</code> property to <code>secondary</code>.</p>
|
|
52
|
+
|
|
53
|
+
<astro-island uid="Z1RFQki" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { Card, CardTitle, CardBody, CardFooter } from '@patternfly/react-core';\n\nexport const CardSecondary: React.FunctionComponent = () => (\n <Card ouiaId=\"SecondaryCard\" variant=\"secondary\">\n <CardTitle>Title</CardTitle>\n <CardBody>Body</CardBody>\n <CardFooter>Footer</CardFooter>\n </Card>\n);\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
54
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1797" data-pf-content="true" class="pf-v6-c-content--h3">Modifiers</h3>
|
|
55
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1798" data-pf-content="true" class="pf-v6-c-content--p">You can further modify the styling of the card’s content by using the properties outlined below. In this example, you can enable each modifier by selecting its respective checkbox.</p>
|
|
56
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1829" data-pf-content="true" class="pf-v6-c-content--p">Most modifiers can be used in combination with each other, except for <code>isCompact</code> and <code>isLarge</code>, since they are contradictory.</p>
|
|
57
|
+
|
|
58
|
+
<astro-island uid="ZaQvmw" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { Fragment, useState } from 'react';\nimport { Card, CardTitle, CardBody, CardFooter, Checkbox } from '@patternfly/react-core';\n\nexport const CardWithModifiers: React.FunctionComponent = () => {\n const mods = ['isCompact', 'isLarge', 'isFullHeight', 'isPlain'];\n const [modifiers, setModifiers] = useState({});\n\n return (\n <Fragment>\n <div style={{ marginBottom: '12px' }}>\n {mods.map((mod) => (\n <Checkbox\n id={mod}\n key={mod}\n label={mod}\n isChecked={modifiers[mod]}\n onChange={(_event, checked) => {\n modifiers[mod] = checked;\n setModifiers({ ...modifiers });\n }}\n />\n ))}\n </div>\n <div style={{ height: '15rem' }}>\n <Card {...modifiers}>\n <CardTitle>Title</CardTitle>\n <CardBody>Body</CardBody>\n <CardFooter>Footer</CardFooter>\n </Card>\n </div>\n </Fragment>\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
<table><thead><tr><th>Modifier</th><th>Description</th></tr></thead><tbody><tr><td>isCompact</td><td>Modifies the card to include compact styling. Should not be used with isLarge.</td></tr><tr><td>isLarge</td><td>Modifies the card to be large. Should not be used with isCompact.</td></tr><tr><td>isFullHeight</td><td>Modifies the card so that it fills the total available height of its container.</td></tr><tr><td>isPlain</td><td>Modifies the card to include plain styling, which removes the border and background.</td></tr></tbody></table>
|
|
85
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1799" data-pf-content="true" class="pf-v6-c-content--h3">Header images and actions</h3>
|
|
86
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1847" data-pf-content="true" class="pf-v6-c-content--p">You can include header actions with the <code>actions</code> property of <code><CardHeader></code> . The following example includes an image using the <a data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1800" data-pf-content="true" class="pf-v6-c-content--a">Brand</a> component, and also includes a kebab dropdown and a checkbox in <code><CardHeader></code> actions.</p>
|
|
87
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1830" data-pf-content="true" class="pf-v6-c-content--p">The <code>actions</code> property for <code><CardHeader></code> includes the <code>hasNoOffset</code> property, which is <code>false</code> by default. When <code>hasNoOffset</code> is <code>false</code>, a negative margin is applied to help align default-sized card titles with card actions.</p>
|
|
88
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1831" data-pf-content="true" class="pf-v6-c-content--p">You may use <code>hasNoOffset</code> to remove this negative margin, which better aligns card actions in implementations that use large card titles or tall header images, for example.</p>
|
|
89
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1801" data-pf-content="true" class="pf-v6-c-content--p">Select the “actions hasNoOffset” checkbox in the example below to illustrate this behavior.</p>
|
|
90
|
+
|
|
91
|
+
<astro-island uid="1CU4wh" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { useState } from 'react';\nimport {\n Brand,\n Card,\n CardHeader,\n CardTitle,\n CardBody,\n CardFooter,\n Checkbox,\n Dropdown,\n DropdownList,\n DropdownItem,\n MenuToggle,\n MenuToggleElement,\n Divider\n} from '@patternfly/react-core';\nimport EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';\nimport pfLogo from '../../assets/PF-HorizontalLogo-Color.svg';\n\nexport const CardWithImageAndActions: React.FunctionComponent = () => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const [isChecked, setIsChecked] = useState<boolean>(false);\n const [hasNoOffset, setHasNoOffset] = useState<boolean>(false);\n\n const onSelect = () => {\n setIsOpen(!isOpen);\n };\n const onClick = (checked: boolean) => {\n setIsChecked(checked);\n };\n const toggleOffset = (checked: boolean) => {\n setHasNoOffset(checked);\n };\n\n const dropdownItems = (\n <>\n <DropdownItem key=\"action\">Action</DropdownItem>\n {/* Prevent default onClick functionality for example purposes */}\n <DropdownItem key=\"link\" to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Link\n </DropdownItem>\n <DropdownItem key=\"disabled action\" isDisabled>\n Disabled Action\n </DropdownItem>\n <DropdownItem key=\"disabled link\" isDisabled to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Disabled Link\n </DropdownItem>\n <Divider component=\"li\" key=\"separator\" />\n <DropdownItem key=\"separated action\">Separated Action</DropdownItem>\n <DropdownItem key=\"separated link\" to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Separated Link\n </DropdownItem>\n </>\n );\n\n const headerActions = (\n <>\n <Dropdown\n onSelect={onSelect}\n toggle={(toggleRef: React.Ref<MenuToggleElement>) => (\n <MenuToggle\n ref={toggleRef}\n isExpanded={isOpen}\n onClick={() => setIsOpen(!isOpen)}\n variant=\"plain\"\n aria-label=\"Card header images and actions example kebab toggle\"\n icon={<EllipsisVIcon />}\n />\n )}\n isOpen={isOpen}\n onOpenChange={(isOpen: boolean) => setIsOpen(isOpen)}\n >\n <DropdownList>{dropdownItems}</DropdownList>\n </Dropdown>\n <Checkbox\n isChecked={isChecked}\n onChange={(_event, checked) => onClick(checked)}\n aria-label=\"card checkbox example\"\n id=\"check-1\"\n name=\"check1\"\n />\n </>\n );\n\n return (\n <>\n <Checkbox\n label=\"actions hasNoOffset\"\n isChecked={hasNoOffset}\n onChange={(_event, checked) => toggleOffset(checked)}\n aria-label=\"remove actions offset\"\n id=\"toggle-actions-offset\"\n name=\"toggle-actions-offset\"\n />\n <div style={{ marginTop: '15px' }}>\n <Card>\n <CardHeader actions={{ actions: headerActions, hasNoOffset }}>\n <Brand src={pfLogo} alt=\"PatternFly logo\" style={{ width: '300px' }} />\n </CardHeader>\n <CardTitle>Title</CardTitle>\n <CardBody>Body</CardBody>\n <CardFooter>Footer</CardFooter>\n </Card>\n </div>\n </>\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
92
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1802" data-pf-content="true" class="pf-v6-c-content--h3">Title inline with images and actions</h3>
|
|
93
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1832" data-pf-content="true" class="pf-v6-c-content--p">Moving <code><CardTitle></code> within the <code><CardHeader></code> will style it inline with any images or actions.</p>
|
|
94
|
+
|
|
95
|
+
<astro-island uid="16wQrm" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { useState } from 'react';\nimport {\n Card,\n CardHeader,\n CardTitle,\n CardBody,\n CardFooter,\n Checkbox,\n Dropdown,\n DropdownList,\n DropdownItem,\n MenuToggle,\n MenuToggleElement,\n Divider\n} from '@patternfly/react-core';\nimport EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';\n\nexport const CardTitleInHeader: React.FunctionComponent = () => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const [isChecked, setIsChecked] = useState<boolean>(false);\n\n const onSelect = () => {\n setIsOpen(!isOpen);\n };\n const onClick = (checked: boolean) => {\n setIsChecked(checked);\n };\n\n const dropdownItems = (\n <>\n <DropdownItem key=\"action\">Action</DropdownItem>\n {/* Prevent default onClick functionality for example purposes */}\n <DropdownItem key=\"link\" to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Link\n </DropdownItem>\n <DropdownItem key=\"disabled action\" isDisabled>\n Disabled Action\n </DropdownItem>\n <DropdownItem key=\"disabled link\" isDisabled to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Disabled Link\n </DropdownItem>\n <Divider component=\"li\" key=\"separator\" />\n <DropdownItem key=\"separated action\">Separated Action</DropdownItem>\n <DropdownItem key=\"separated link\" to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Separated Link\n </DropdownItem>\n </>\n );\n\n const headerActions = (\n <>\n <Dropdown\n onSelect={onSelect}\n toggle={(toggleRef: React.Ref<MenuToggleElement>) => (\n <MenuToggle\n ref={toggleRef}\n isExpanded={isOpen}\n onClick={() => setIsOpen(!isOpen)}\n variant=\"plain\"\n aria-label=\"Card title inline with images and actions example kebab toggle\"\n icon={<EllipsisVIcon />}\n />\n )}\n isOpen={isOpen}\n onOpenChange={(isOpen: boolean) => setIsOpen(isOpen)}\n >\n <DropdownList>{dropdownItems}</DropdownList>\n </Dropdown>\n <Checkbox\n isChecked={isChecked}\n onChange={(_event, checked) => onClick(checked)}\n aria-label=\"card checkbox example\"\n id=\"check-2\"\n name=\"check2\"\n />\n </>\n );\n\n return (\n <Card>\n <CardHeader actions={{ actions: headerActions }}>\n <CardTitle>\n This is a really really really really really really really really really really long header\n </CardTitle>\n </CardHeader>\n <CardBody>Body</CardBody>\n <CardFooter>Footer</CardFooter>\n </Card>\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
96
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1803" data-pf-content="true" class="pf-v6-c-content--h3">Card header without title</h3>
|
|
97
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1833" data-pf-content="true" class="pf-v6-c-content--p">Card actions can be placed in the card header even without a <code><CardTitle></code>.</p>
|
|
98
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1834" data-pf-content="true" class="pf-v6-c-content--p">Images can also be placed in the card header without a <code><CardTitle></code>.</p>
|
|
99
|
+
|
|
100
|
+
<astro-island uid="Z1dy8aN" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { useState } from 'react';\nimport {\n Checkbox,\n Card,\n CardHeader,\n CardBody,\n Dropdown,\n DropdownList,\n DropdownItem,\n MenuToggle,\n MenuToggleElement,\n Divider\n} from '@patternfly/react-core';\nimport EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';\n\nexport const CardOnlyActionsInCardHead: React.FunctionComponent = () => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const [isChecked, setIsChecked] = useState<boolean>(false);\n\n const onSelect = () => {\n setIsOpen(!isOpen);\n };\n const onClick = (checked: boolean) => {\n setIsChecked(checked);\n };\n\n const dropdownItems = (\n <>\n <DropdownItem key=\"action\">Action</DropdownItem>\n {/* Prevent default onClick functionality for example purposes */}\n <DropdownItem key=\"link\" to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Link\n </DropdownItem>\n <DropdownItem key=\"disabled action\" isDisabled>\n Disabled Action\n </DropdownItem>\n <DropdownItem key=\"disabled link\" isDisabled to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Disabled Link\n </DropdownItem>\n <Divider component=\"li\" key=\"separator\" />\n <DropdownItem key=\"separated action\">Separated Action</DropdownItem>\n <DropdownItem key=\"separated link\" to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Separated Link\n </DropdownItem>\n </>\n );\n\n const headerActions = (\n <>\n <Dropdown\n onSelect={onSelect}\n toggle={(toggleRef: React.Ref<MenuToggleElement>) => (\n <MenuToggle\n ref={toggleRef}\n isExpanded={isOpen}\n onClick={() => setIsOpen(!isOpen)}\n variant=\"plain\"\n aria-label=\"Card header without title example kebab toggle\"\n icon={<EllipsisVIcon />}\n />\n )}\n isOpen={isOpen}\n onOpenChange={(isOpen: boolean) => setIsOpen(isOpen)}\n >\n <DropdownList>{dropdownItems}</DropdownList>\n </Dropdown>\n <Checkbox\n isChecked={isChecked}\n onChange={(_event, checked) => onClick(checked)}\n aria-label=\"card checkbox example\"\n id=\"check-3\"\n name=\"check3\"\n />\n </>\n );\n\n return (\n <Card>\n <CardHeader actions={{ actions: headerActions }} />\n <CardBody>This is the card body. There are only actions in the card head.</CardBody>\n </Card>\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
101
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1804" data-pf-content="true" class="pf-v6-c-content--h3">With HTML heading element</h3>
|
|
102
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1835" data-pf-content="true" class="pf-v6-c-content--p">You may use the <code>component</code> property to place the card’s title within an HTML heading element.</p>
|
|
103
|
+
|
|
104
|
+
<astro-island uid="SUdKq" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { Card, CardTitle, CardBody, CardFooter } from '@patternfly/react-core';\n\nexport const CardWithHeadingElement: React.FunctionComponent = () => (\n <Card>\n <CardTitle component=\"h4\">Title within an {'<h4>'} element</CardTitle>\n <CardBody>Body</CardBody>\n <CardFooter>Footer</CardFooter>\n </Card>\n);\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
105
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1805" data-pf-content="true" class="pf-v6-c-content--h3">With multiple body sections</h3>
|
|
106
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1806" data-pf-content="true" class="pf-v6-c-content--p">You may use multiple body sections to visually separate blocks of content.</p>
|
|
107
|
+
|
|
108
|
+
<astro-island uid="Z1eucnF" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { Card, CardTitle, CardBody, CardFooter } from '@patternfly/react-core';\n\nexport const CardWithMultipleBodySections: React.FunctionComponent = () => (\n <Card>\n <CardTitle>Title</CardTitle>\n <CardBody>Body</CardBody>\n <CardBody>Body</CardBody>\n <CardBody>Body</CardBody>\n <CardFooter>Footer</CardFooter>\n </Card>\n);\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
109
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1807" data-pf-content="true" class="pf-v6-c-content--h3">With a primary body section that fills</h3>
|
|
110
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1836" data-pf-content="true" class="pf-v6-c-content--p"><code><CardBody></code> sections will fill the available height of the card when <code>isFilled</code> equals <code>{true}</code>, which is the default value. Set <code>isFilled</code> to <code>{false}</code> to disable this behavior for one or more body sections. The remaining available height of the card will be split between any <code><CardBody></code> section that does not set <code>isFilled</code> to <code>{false}</code>.</p>
|
|
111
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1837" data-pf-content="true" class="pf-v6-c-content--p">A common use case of this is to set all but one body section to <code>isFilled={false}</code> so that a primary body section fills the available space of the card as seen in the example below. This example has 3 <code><CardBody></code> sections, two of which set <code>isFilled</code> to <code>{false}</code>. The third <code><CardBody></code> fills the remaining height of the card.</p>
|
|
112
|
+
|
|
113
|
+
<astro-island uid="Z1Icbrj" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { Card, CardTitle, CardBody, CardFooter } from '@patternfly/react-core';\n\nexport const CardWithBodySectionFills: React.FunctionComponent = () => (\n <Card style={{ minHeight: '30em' }}>\n <CardTitle>Title</CardTitle>\n <CardBody isFilled={false}>Body pf-m-no-fill</CardBody>\n <CardBody isFilled={false}>Body pf-m-no-fill</CardBody>\n <CardBody>Body</CardBody>\n <CardFooter>Footer</CardFooter>\n </Card>\n);\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
114
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1808" data-pf-content="true" class="pf-v6-c-content--h3">Selectable</h3>
|
|
115
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1809" data-pf-content="true" class="pf-v6-c-content--p">A selectable card can be selected by clicking anywhere within the card.</p>
|
|
116
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1848" data-pf-content="true" class="pf-v6-c-content--p">You must avoid rendering any other interactive content within the <code><Card></code> when it is meant to be selectable only. Refer to our <a data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1810" data-pf-content="true" class="pf-v6-c-content--a">actionable and selectable example</a> if you need a card that is both selectable and has other interactive, actionable content.</p>
|
|
117
|
+
|
|
118
|
+
<astro-island uid="ZMY8Ss" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { useState } from 'react';\nimport { Card, CardHeader, CardTitle, CardBody, Checkbox, Gallery } from '@patternfly/react-core';\n\nexport const SelectableCard: React.FunctionComponent = () => {\n const [isChecked1, setIsChecked1] = useState(false);\n const [isChecked2, setIsChecked2] = useState(false);\n const [isChecked3, setIsChecked3] = useState(false);\n const [isSecondary, setIsSecondary] = useState<boolean>(false);\n\n const id1 = 'selectable-card-input-1';\n const id2 = 'selectable-card-input-2';\n const id3 = 'selectable-card-input-3';\n\n const onChange = (event: React.FormEvent<HTMLInputElement>, checked: boolean) => {\n const name = event.currentTarget.name;\n\n switch (name) {\n case id1:\n setIsChecked1(checked);\n break;\n case id2:\n setIsChecked2(checked);\n break;\n case id3:\n setIsChecked3(checked);\n break;\n }\n };\n\n const toggleVariant = (checked: boolean) => {\n setIsSecondary(checked);\n };\n\n return (\n <>\n <Checkbox\n label=\"Secondary card styling\"\n isChecked={isSecondary}\n onChange={(_event, checked) => toggleVariant(checked)}\n id=\"toggle-variant-selectable\"\n name=\"toggle-variant\"\n />\n <div style={{ marginTop: '15px' }}>\n <Gallery hasGutter>\n <Card\n id=\"selectable-card-example-1\"\n isSelectable\n isSelected={isChecked1}\n variant={isSecondary ? 'secondary' : 'default'}\n >\n <CardHeader\n selectableActions={{\n selectableActionId: id1,\n selectableActionAriaLabelledby: 'selectable-card-example-1',\n name: id1,\n onChange,\n hasNoOffset: true\n }}\n >\n <CardTitle>First card</CardTitle>\n </CardHeader>\n <CardBody>This card is selectable.</CardBody>\n </Card>\n <Card\n id=\"selectable-card-example-2\"\n isSelectable\n isSelected={isChecked2}\n variant={isSecondary ? 'secondary' : 'default'}\n >\n <CardHeader\n selectableActions={{\n selectableActionId: id2,\n selectableActionAriaLabelledby: 'selectable-card-example-2',\n name: id2,\n onChange,\n hasNoOffset: true\n }}\n >\n <CardTitle>Second card</CardTitle>\n </CardHeader>\n <CardBody>This card is selectable.</CardBody>\n </Card>\n <Card\n id=\"selectable-card-example-3\"\n isSelectable\n isDisabled\n isSelected={isChecked3}\n variant={isSecondary ? 'secondary' : 'default'}\n >\n <CardHeader\n selectableActions={{\n selectableActionId: id3,\n selectableActionAriaLabelledby: 'selectable-card-example-3',\n name: id3,\n onChange,\n hasNoOffset: true\n }}\n >\n <CardTitle>Third card</CardTitle>\n </CardHeader>\n <CardBody>This card is selectable but disabled.</CardBody>\n </Card>\n </Gallery>\n </div>\n </>\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
119
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1811" data-pf-content="true" class="pf-v6-c-content--h3">Single selectable</h3>
|
|
120
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1838" data-pf-content="true" class="pf-v6-c-content--p">When a group of single selectable cards are related, you must pass the same <code>name</code> property to each card’s <code>selectableActions</code> property.</p>
|
|
121
|
+
|
|
122
|
+
<astro-island uid="Z18GisT" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { useState } from 'react';\nimport { Card, CardHeader, CardTitle, CardBody, Gallery } from '@patternfly/react-core';\n\nexport const SingleSelectableCard: React.FunctionComponent = () => {\n const [isChecked, setIsChecked] = useState('');\n const id1 = 'single-selectable-card-input-1';\n const id2 = 'single-selectable-card-input-2';\n const id3 = 'single-selectable-card-input-3';\n\n const onChange = (event: React.FormEvent<HTMLInputElement>) => {\n setIsChecked(event.currentTarget.id);\n };\n\n return (\n <Gallery hasGutter>\n <Card id=\"single-selectable-card-example-1\" isSelectable isSelected={isChecked === id1}>\n <CardHeader\n selectableActions={{\n selectableActionId: id1,\n selectableActionAriaLabelledby: 'single-selectable-card-example-1',\n name: 'single-selectable-card-example',\n variant: 'single',\n onChange,\n hasNoOffset: true\n }}\n >\n <CardTitle>First card</CardTitle>\n </CardHeader>\n <CardBody>This card is single selectable.</CardBody>\n </Card>\n <Card id=\"single-selectable-card-example-2\" isSelectable isSelected={isChecked === id2}>\n <CardHeader\n selectableActions={{\n selectableActionId: id2,\n selectableActionAriaLabelledby: 'single-selectable-card-example-2',\n name: 'single-selectable-card-example',\n variant: 'single',\n onChange,\n hasNoOffset: true\n }}\n >\n <CardTitle>Second card</CardTitle>\n </CardHeader>\n <CardBody>This card is single selectable.</CardBody>\n </Card>\n <Card id=\"single-selectable-card-example-3\" isSelectable isDisabled isSelected={isChecked === id3}>\n <CardHeader\n selectableActions={{\n selectableActionId: id3,\n selectableActionAriaLabelledby: 'single-selectable-card-example-3',\n name: 'single-selectable-card-example',\n variant: 'single',\n onChange,\n hasNoOffset: true\n }}\n >\n <CardTitle>Third card</CardTitle>\n </CardHeader>\n <CardBody>This card is single selectable but disabled.</CardBody>\n </Card>\n </Gallery>\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
123
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1812" data-pf-content="true" class="pf-v6-c-content--h3">Actionable</h3>
|
|
124
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1839" data-pf-content="true" class="pf-v6-c-content--p">An actionable card can perform an action or navigate to a link by clicking anywhere within the card. To open a link in a new tab or window, pass the <code>isExternalLink</code> property to <code>selectableActions</code>.</p>
|
|
125
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1849" data-pf-content="true" class="pf-v6-c-content--p">You can pass the <code>isClicked</code> property to <code><Card></code> to convey that a card is the currently clicked one, such as when clicking a card would open a <a data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1813" data-pf-content="true" class="pf-v6-c-content--a">primary-detail view</a>. This must not be used simply for “selection” of a card, and you should instead use our <a data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1814" data-pf-content="true" class="pf-v6-c-content--a">selectable card</a> or <a data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1815" data-pf-content="true" class="pf-v6-c-content--a">single selectable card</a>.</p>
|
|
126
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1840" data-pf-content="true" class="pf-v6-c-content--p">When a card is meant to be actionable only, you must avoid rendering any other interactive content within the <code><Card></code>, similar to selectable cards.</p>
|
|
127
|
+
|
|
128
|
+
<astro-island uid="ZOfdmG" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { useState } from 'react';\nimport { Card, CardHeader, CardTitle, CardBody, Checkbox, Gallery } from '@patternfly/react-core';\n\nexport const CardClickable: React.FunctionComponent = () => {\n const [isSecondary, setIsSecondary] = useState<boolean>(false);\n\n const toggleVariant = (checked: boolean) => {\n setIsSecondary(checked);\n };\n\n return (\n <>\n <Checkbox\n label=\"secondary styling\"\n isChecked={isSecondary}\n onChange={(_event, checked) => toggleVariant(checked)}\n aria-label=\"add secondary styling\"\n id=\"toggle-variant-clickable\"\n name=\"toggle-variant\"\n />\n <div style={{ marginTop: '15px' }}>\n <Gallery hasGutter>\n <Card isClickable variant={isSecondary ? 'secondary' : 'default'}>\n <CardHeader\n selectableActions={{\n // eslint-disable-next-line no-console\n onClickAction: () => console.log(`First card in actionable example clicked`),\n selectableActionAriaLabelledby: 'clickable-card-example-title-1'\n }}\n >\n <CardTitle id=\"clickable-card-example-title-1\">First card in the actionable example</CardTitle>\n </CardHeader>\n <CardBody>This card performs an action on click.</CardBody>\n </Card>\n <Card isClickable variant={isSecondary ? 'secondary' : 'default'}>\n <CardHeader\n selectableActions={{\n to: '#',\n selectableActionAriaLabelledby: 'clickable-card-example-title-2'\n }}\n >\n <CardTitle id=\"clickable-card-example-title-2\">Second card in the actionable example</CardTitle>\n </CardHeader>\n <CardBody>This card can navigate to a link on click.</CardBody>\n </Card>\n <Card isClickable isDisabled variant={isSecondary ? 'secondary' : 'default'}>\n <CardHeader\n selectableActions={{\n // eslint-disable-next-line no-console\n onClickAction: () => console.log(`Third card in actionable example clicked`),\n selectableActionAriaLabelledby: 'clickable-card-example-title-3'\n }}\n >\n <CardTitle id=\"clickable-card-example-title-3\">Third card in the actionable example</CardTitle>\n </CardHeader>\n <CardBody>This card is clickable but disabled.</CardBody>\n </Card>\n </Gallery>\n </div>\n </>\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
129
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1816" data-pf-content="true" class="pf-v6-c-content--h3">Actionable and selectable</h3>
|
|
130
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1841" data-pf-content="true" class="pf-v6-c-content--p">A card can be selectable and have additional interactive content by passing both the <code>isClickable</code> and <code>isSelectable</code> properties to <code><Card></code>. The following example shows how the actionable functionality can be rendered anywhere within a selectable card.</p>
|
|
131
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1817" data-pf-content="true" class="pf-v6-c-content--p">When passing interactive content to an actionable and selectable card that is disabled, you should also ensure the interactive content is disabled as well, if applicable.</p>
|
|
132
|
+
|
|
133
|
+
<astro-island uid="veQi2" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { useState } from 'react';\nimport { Card, CardHeader, CardTitle, CardBody, Button, Checkbox, Gallery } from '@patternfly/react-core';\n\nexport const CardClickable: React.FunctionComponent = () => {\n const [isChecked1, setIsChecked1] = useState(false);\n const [isChecked2, setIsChecked2] = useState(false);\n const [isChecked3, setIsChecked3] = useState(false);\n const [isClicked, setIsClicked] = useState(false);\n const [isSecondary, setIsSecondary] = useState<boolean>(false);\n\n const id1 = 'clickable-selectable-card-input-1';\n const id2 = 'clickable-selectable-card-input-2';\n const id3 = 'clickable-selectable-card-input-3';\n\n const onClick = () => {\n setIsClicked((prevState) => !prevState);\n };\n\n const onChange = (event: React.FormEvent<HTMLInputElement>, checked: boolean) => {\n const name = event.currentTarget.name;\n\n switch (name) {\n case id1:\n setIsChecked1(checked);\n break;\n case id2:\n setIsChecked2(checked);\n break;\n case id3:\n setIsChecked3(checked);\n break;\n }\n };\n\n const toggleVariant = (checked: boolean) => {\n setIsSecondary(checked);\n };\n\n return (\n <>\n <Checkbox\n label=\"secondary styling\"\n isChecked={isSecondary}\n onChange={(_event, checked) => toggleVariant(checked)}\n aria-label=\"add secondary styling\"\n id=\"toggle-variant-clickable-selectable\"\n name=\"toggle-variant\"\n />\n <div style={{ marginTop: '15px' }}>\n <Gallery hasGutter>\n <Card\n id=\"clickable-selectable-card-example-1\"\n isClickable\n isSelectable\n isSelected={isChecked1}\n isClicked={isClicked}\n variant={isSecondary ? 'secondary' : 'default'}\n >\n <CardHeader\n selectableActions={{\n selectableActionId: id1,\n selectableActionAriaLabelledby: 'clickable-selectable-card-example-1',\n name: id1,\n onChange,\n hasNoOffset: true\n }}\n >\n <CardTitle>\n <Button variant=\"link\" isInline onClick={onClick}>\n First card\n </Button>\n </CardTitle>\n </CardHeader>\n <CardBody>This card performs an action upon clicking the card title and is selectable.</CardBody>\n </Card>\n <Card\n id=\"clickable-selectable-card-example-2\"\n isClickable\n isSelectable\n isSelected={isChecked2}\n variant={isSecondary ? 'secondary' : 'default'}\n >\n <CardHeader\n selectableActions={{\n selectableActionId: id2,\n selectableActionAriaLabelledby: 'clickable-selectable-card-example-2',\n name: id2,\n onChange,\n hasNoOffset: true\n }}\n >\n <CardTitle>Second Card</CardTitle>\n </CardHeader>\n <CardBody>\n This card is selectable and has a link in the card body that navigates to{' '}\n <Button variant=\"link\" isInline component=\"a\" href=\"#\">\n Patternfly\n </Button>\n .\n </CardBody>\n </Card>\n <Card\n id=\"clickable-selectable-card-example-3\"\n isClickable\n isSelectable\n isDisabled\n isSelected={isChecked3}\n variant={isSecondary ? 'secondary' : 'default'}\n >\n <CardHeader\n selectableActions={{\n selectableActionId: id3,\n selectableActionAriaLabelledby: 'clickable-selectable-card-example-3',\n name: id3,\n onChange,\n hasNoOffset: true\n }}\n >\n <CardTitle>\n <Button isDisabled variant=\"link\" isInline component=\"a\" href=\"https://www.patternfly.org/\">\n Third card\n </Button>\n </CardTitle>\n </CardHeader>\n <CardBody>This card is clickable and selectable, but disabled.</CardBody>\n </Card>\n </Gallery>\n </div>\n </>\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
134
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1818" data-pf-content="true" class="pf-v6-c-content--h3">Expandable cards</h3>
|
|
135
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1842" data-pf-content="true" class="pf-v6-c-content--p">A card can be made expandable using the <code>isExpanded</code> property. In the collapsed state, only the card header is shown, and the user can click the caret to view the rest of the card content.</p>
|
|
136
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1843" data-pf-content="true" class="pf-v6-c-content--p">Place any content that you want to be hidden within the <code><CardExpandableContent></code> component.</p>
|
|
137
|
+
|
|
138
|
+
<astro-island uid="Z1eNiOz" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { Fragment, useState } from 'react';\nimport {\n Card,\n CardHeader,\n CardTitle,\n CardBody,\n CardFooter,\n CardExpandableContent,\n Checkbox,\n Dropdown,\n DropdownList,\n DropdownItem,\n Divider,\n MenuToggle,\n MenuToggleElement\n} from '@patternfly/react-core';\nimport EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';\n\nexport const CardExpandable: React.FunctionComponent = () => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const [isChecked, setIsChecked] = useState<boolean>(false);\n const [isExpanded, setIsExpanded] = useState<boolean>(false);\n const [isToggleRightAligned, setIsToggleRightAligned] = useState<boolean>(false);\n\n const onSelect = () => {\n setIsOpen(!isOpen);\n };\n\n const onClick = (checked: boolean) => {\n setIsChecked(checked);\n };\n\n const onExpand = (event: React.MouseEvent, id: string) => {\n // eslint-disable-next-line no-console\n console.log(id);\n setIsExpanded(!isExpanded);\n };\n\n const onRightAlign = () => {\n setIsToggleRightAligned(!isToggleRightAligned);\n };\n\n const dropdownItems = (\n <>\n <DropdownItem key=\"action\">Action</DropdownItem>\n {/* Prevent default onClick functionality for example purposes */}\n <DropdownItem key=\"link\" to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Link\n </DropdownItem>\n <DropdownItem key=\"disabled action\" isDisabled>\n Disabled Action\n </DropdownItem>\n <DropdownItem key=\"disabled link\" isDisabled to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Disabled Link\n </DropdownItem>\n <Divider component=\"li\" key=\"separator\" />\n <DropdownItem key=\"separated action\">Separated Action</DropdownItem>\n <DropdownItem key=\"separated link\" to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Separated Link\n </DropdownItem>\n </>\n );\n const headerActions = (\n <>\n <Dropdown\n onSelect={onSelect}\n toggle={(toggleRef: React.Ref<MenuToggleElement>) => (\n <MenuToggle\n ref={toggleRef}\n isExpanded={isOpen}\n onClick={() => setIsOpen(!isOpen)}\n variant=\"plain\"\n aria-label=\"Card expandable example kebab toggle\"\n icon={<EllipsisVIcon />}\n />\n )}\n isOpen={isOpen}\n onOpenChange={(isOpen: boolean) => setIsOpen(isOpen)}\n >\n <DropdownList>{dropdownItems}</DropdownList>\n </Dropdown>\n <Checkbox\n isChecked={isChecked}\n onChange={(_event, checked) => onClick(checked)}\n aria-label=\"card checkbox example\"\n id=\"check-4\"\n name=\"check4\"\n />\n </>\n );\n\n return (\n <Fragment>\n <div style={{ marginBottom: '12px' }}>\n <Checkbox\n id={'isToggleRightAligned-1'}\n key={'isToggleRightAligned'}\n label={'isToggleRightAligned'}\n isChecked={isToggleRightAligned}\n onChange={onRightAlign}\n />\n </div>\n <Card id=\"expandable-card\" isExpanded={isExpanded}>\n <CardHeader\n actions={{ actions: headerActions }}\n onExpand={onExpand}\n isToggleRightAligned={isToggleRightAligned}\n toggleButtonProps={{\n id: 'toggle-button1',\n 'aria-label': 'Details',\n 'aria-labelledby': 'expandable-card-title toggle-button1',\n 'aria-expanded': isExpanded\n }}\n >\n <CardTitle id=\"expandable-card-title\">Title</CardTitle>\n </CardHeader>\n <CardExpandableContent>\n <CardBody>Body</CardBody>\n <CardFooter>Footer</CardFooter>\n </CardExpandableContent>\n </Card>\n </Fragment>\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
139
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1819" data-pf-content="true" class="pf-v6-c-content--h3">Expandable with icon</h3>
|
|
140
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1820" data-pf-content="true" class="pf-v6-c-content--p">An image can be placed in the card header to show users an icon beside the expansion caret.</p>
|
|
141
|
+
|
|
142
|
+
<astro-island uid="Mtt6b" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { useState } from 'react';\nimport {\n Card,\n CardHeader,\n CardBody,\n CardFooter,\n CardExpandableContent,\n Checkbox,\n Dropdown,\n DropdownList,\n DropdownItem,\n Divider,\n MenuToggle,\n MenuToggleElement\n} from '@patternfly/react-core';\nimport pfLogoSmall from '../../PF-IconLogo.svg';\nimport EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';\n\nexport const CardExpandableWithIcon: React.FunctionComponent = () => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const [isChecked, setIsChecked] = useState<boolean>(false);\n const [isExpanded, setIsExpanded] = useState<boolean>(false);\n\n const onSelect = () => {\n setIsOpen(!isOpen);\n };\n\n const onClick = (checked: boolean) => {\n setIsChecked(checked);\n };\n\n const onExpand = (event: React.MouseEvent, id: string) => {\n // eslint-disable-next-line no-console\n console.log(id);\n setIsExpanded(!isExpanded);\n };\n\n const dropdownItems = (\n <>\n <DropdownItem key=\"action\">Action</DropdownItem>\n {/* Prevent default onClick functionality for example purposes */}\n <DropdownItem key=\"link\" to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Link\n </DropdownItem>\n <DropdownItem key=\"disabled action\" isDisabled>\n Disabled Action\n </DropdownItem>\n <DropdownItem key=\"disabled link\" isDisabled to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Disabled Link\n </DropdownItem>\n <Divider component=\"li\" key=\"separator\" />\n <DropdownItem key=\"separated action\">Separated Action</DropdownItem>\n <DropdownItem key=\"separated link\" to=\"#\" onClick={(event: any) => event.preventDefault()}>\n Separated Link\n </DropdownItem>\n </>\n );\n\n const headerActions = (\n <>\n <Dropdown\n onSelect={onSelect}\n toggle={(toggleRef: React.Ref<MenuToggleElement>) => (\n <MenuToggle\n ref={toggleRef}\n isExpanded={isOpen}\n onClick={() => setIsOpen(!isOpen)}\n variant=\"plain\"\n aria-label=\"Card expandable with icon example kebab toggle\"\n icon={<EllipsisVIcon />}\n />\n )}\n isOpen={isOpen}\n onOpenChange={(isOpen: boolean) => setIsOpen(isOpen)}\n >\n <DropdownList>{dropdownItems}</DropdownList>\n </Dropdown>\n <Checkbox\n isChecked={isChecked}\n onChange={(_event, checked) => onClick(checked)}\n aria-label=\"card checkbox example\"\n id=\"check-5\"\n name=\"check5\"\n />\n </>\n );\n\n return (\n <Card id=\"expandable-card-icon\" isExpanded={isExpanded}>\n <CardHeader\n actions={{ actions: headerActions }}\n onExpand={onExpand}\n toggleButtonProps={{\n id: 'toggle-button2',\n 'aria-label': 'Patternfly Details',\n 'aria-expanded': isExpanded\n }}\n >\n <img src={pfLogoSmall} alt=\"PatternFly logo\" width=\"27px\" />\n </CardHeader>\n <CardExpandableContent>\n <CardBody>Body</CardBody>\n <CardFooter>Footer</CardFooter>\n </CardExpandableContent>\n </Card>\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
143
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1821" data-pf-content="true" class="pf-v6-c-content--h3">Card with dividers</h3>
|
|
144
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1822" data-pf-content="true" class="pf-v6-c-content--p">Dividers can be placed between sections of the card.</p>
|
|
145
|
+
|
|
146
|
+
<astro-island uid="Y25vJ" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { Card, CardTitle, CardBody, CardFooter, Divider } from '@patternfly/react-core';\n\nexport const CardWithDividers: React.FunctionComponent = () => (\n <Card ouiaId=\"CardWithDividers\">\n <CardTitle>Title</CardTitle>\n <Divider />\n <CardBody>Body</CardBody>\n <Divider />\n <CardBody>Body</CardBody>\n <Divider />\n <CardFooter>Footer</CardFooter>\n </Card>\n);\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
147
|
+
<h2 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1823" data-pf-content="true" class="pf-v6-c-content--h2">Cards as tiles</h2>
|
|
148
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1824" data-pf-content="true" class="pf-v6-c-content--p">Sets of selectable cards can be used as tiles, which are static options that users can select.</p>
|
|
149
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1844" data-pf-content="true" class="pf-v6-c-content--p">They can be either single selectable or multi selectable, by passing the <code>variant</code> property to the <code>selectableActions</code> object. You can also toggle the visibility of the radio or checkbox by passing the <code>isHidden</code> property to the <code>selectableActions</code> object.</p>
|
|
150
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1825" data-pf-content="true" class="pf-v6-c-content--h3">Single selectable tiles</h3>
|
|
151
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1845" data-pf-content="true" class="pf-v6-c-content--p">To prevent users from selecting more than 1 tile in a set, set <code>variant</code> to “single” within the <code>selectableActions</code> object of <code><CardHeader></code>.</p>
|
|
152
|
+
|
|
153
|
+
<astro-island uid="ZfBbG3" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { useState } from 'react';\nimport { Card, CardHeader, CardBody, Gallery, Flex } from '@patternfly/react-core';\nimport PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';\n\nexport const CardTile: React.FunctionComponent = () => {\n const [isChecked, setIsChecked] = useState('');\n const id1 = 'tile-1';\n const id2 = 'tile-2';\n const id3 = 'tile-3';\n\n const onChange = (event: React.FormEvent<HTMLInputElement>) => {\n setIsChecked(event.currentTarget.id);\n };\n\n return (\n <Gallery hasGutter>\n <Card id=\"tile-example-1\" isSelectable isSelected={isChecked === id1}>\n <CardHeader\n selectableActions={{\n selectableActionId: id1,\n selectableActionAriaLabelledby: 'tile-example-1',\n name: id1,\n variant: 'single',\n onChange,\n isHidden: true\n }}\n >\n <Flex gap={{ default: 'gapSm' }} alignItems={{ default: 'alignItemsCenter' }}>\n <PlusIcon />\n <b>Tile header</b>\n </Flex>\n </CardHeader>\n <CardBody>Tile content and description</CardBody>\n </Card>\n <Card id=\"tile-example-2\" isSelectable isSelected={isChecked === id2}>\n <CardHeader\n selectableActions={{\n selectableActionId: id2,\n selectableActionAriaLabelledby: 'tile-example-2',\n name: id2,\n variant: 'single',\n onChange,\n isHidden: true\n }}\n >\n <Flex gap={{ default: 'gapSm' }} alignItems={{ default: 'alignItemsCenter' }}>\n <PlusIcon />\n <b>Tile header</b>\n </Flex>\n </CardHeader>\n <CardBody>Tile content and description</CardBody>\n </Card>\n <Card id=\"tile-example-3\" isSelectable isDisabled isSelected={isChecked === id3}>\n <CardHeader\n selectableActions={{\n selectableActionId: id3,\n selectableActionAriaLabelledby: 'tile-example-3',\n name: id3,\n variant: 'single',\n onChange,\n isHidden: true\n }}\n >\n <Flex gap={{ default: 'gapSm' }} alignItems={{ default: 'alignItemsCenter' }}>\n <PlusIcon />\n <b>Tile header (disabled)</b>\n </Flex>\n </CardHeader>\n <CardBody>Tile content and description</CardBody>\n </Card>\n </Gallery>\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island>
|
|
154
|
+
<h3 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1826" data-pf-content="true" class="pf-v6-c-content--h3">Multi selectable tiles</h3>
|
|
155
|
+
<p data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1846" data-pf-content="true" class="pf-v6-c-content--p">To allow users to select more than 1 tile in a set, do not set <code>variant</code> within the <code>selectableActions</code> object of <code><CardHeader></code>.</p>
|
|
156
|
+
|
|
157
|
+
<astro-island uid="Z1XOlH4" component-url="/_astro/LiveExample.B5R4Dzng.js" component-export="LiveExample" renderer-url="/_astro/client.DN8ES6L5.js" props="{"src":[0,"import { useState } from 'react';\nimport { Card, CardHeader, CardBody, Gallery, Flex } from '@patternfly/react-core';\nimport PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';\n\nexport const CardTileMulti: React.FunctionComponent = () => {\n const [isChecked1, setIsChecked1] = useState(false);\n const [isChecked2, setIsChecked2] = useState(false);\n const [isChecked3, setIsChecked3] = useState(false);\n const id1 = 'multi-tile-1';\n const id2 = 'multi-tile-2';\n const id3 = 'multi-tile-3';\n\n const onChange = (event: React.FormEvent<HTMLInputElement>, checked: boolean) => {\n const name = event.currentTarget.name;\n\n switch (name) {\n case id1:\n setIsChecked1(checked);\n break;\n case id2:\n setIsChecked2(checked);\n break;\n case id3:\n setIsChecked3(checked);\n break;\n }\n };\n\n return (\n <Gallery hasGutter>\n <Card id=\"multi-tile-example-1\" isSelectable isSelected={isChecked1}>\n <CardHeader\n selectableActions={{\n selectableActionId: id1,\n selectableActionAriaLabelledby: 'multi-tile-example-1',\n name: id1,\n onChange,\n isHidden: true\n }}\n >\n <Flex gap={{ default: 'gapSm' }} alignItems={{ default: 'alignItemsCenter' }}>\n <PlusIcon />\n <b>Tile header</b>\n </Flex>\n </CardHeader>\n <CardBody>Tile content and description</CardBody>\n </Card>\n <Card id=\"multi-tile-example-2\" isSelectable isSelected={isChecked2}>\n <CardHeader\n selectableActions={{\n selectableActionId: id2,\n selectableActionAriaLabelledby: 'multi-tile-example-2',\n name: id2,\n onChange,\n isHidden: true\n }}\n >\n <Flex gap={{ default: 'gapSm' }} alignItems={{ default: 'alignItemsCenter' }}>\n <PlusIcon />\n <b>Tile header</b>\n </Flex>\n </CardHeader>\n <CardBody>Tile content and description</CardBody>\n </Card>\n <Card id=\"multi-tile-example-3\" isSelectable isDisabled isSelected={isChecked3}>\n <CardHeader\n selectableActions={{\n selectableActionId: id3,\n selectableActionAriaLabelledby: 'multi-tile-example-3',\n name: id3,\n onChange,\n isHidden: true\n }}\n >\n <Flex gap={{ default: 'gapSm' }} alignItems={{ default: 'alignItemsCenter' }}>\n <PlusIcon />\n <b>Tile header (disabled)</b>\n </Flex>\n </CardHeader>\n <CardBody>Tile content and description</CardBody>\n </Card>\n </Gallery>\n );\n};\n"],"html":[0]}" ssr client="only" opts="{"name":"LiveExampleBase","value":"react"}"></astro-island> <div class="pf-v6-l-stack pf-m-gutter"><div class="pf-v6-l-stack__item pf-v6-u-mt-md"><astro-island uid="ZjQRhG" component-url="/_astro/PropsTables.YkW1puJk.js" component-export="PropsTables" renderer-url="/_astro/client.DN8ES6L5.js" props="{"propComponents":[1,[[0,"Card"],[0,"CardHeader"],[0,"CardHeaderActionsObject"],[0,"CardHeaderSelectableActionsObject"],[0,"CardTitle"],[0,"CardBody"],[0,"CardFooter"],[0,"CardExpandableContent"]]],"url":[7,"http://localhost:4321/components/card/react"]}" ssr client="only" opts="{"name":"PropsTables","value":"react"}"></astro-island></div><div class="pf-v6-l-stack__item"><div class="pf-v6-l-stack pf-m-gutter"><div class="pf-v6-l-stack__item"><div class="pf-v6-l-flex pf-m-space-items-sm pf-m-align-items-center"><div class=""><h2 data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-ouia-component-id="OUIA-Generated-Content-1793" id="css-variables" tabindex="-1" data-pf-content="true" class="pf-v6-c-content--h2 pf-m-editorial ws-heading pf-v6-c-content--h2"><a href="#css-variables" class="ws-heading-anchor" tabindex="-1"><svg class="pf-v6-svg ws-heading-anchor-icon" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em" style="vertical-align:middle"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"></path></svg></a>
|
|
158
|
+
CSS variables
|
|
159
|
+
</h2></div></div></div><div class="pf-v6-l-stack__item"><astro-island uid="wI4XI" component-url="/_astro/CSSTable.-Emc9iTg.js" component-export="CSSTable" renderer-url="/_astro/client.DN8ES6L5.js" props="{"autoLinkHeader":[0,false],"cssPrefix":[0,"pf-v6-c-card"]}" ssr client="only" opts="{"name":"CSSTableComponent","value":"react"}"></astro-island></div></div></div></div> </div></section> </div></section> </main> </div> </div> <script type="module">try{localStorage.getItem("theme-preference")==="dark"&&document.documentElement.classList.add("pf-v6-theme-dark")}catch(e){console.error("Failed to set initial theme:",e)}</script></body></html>
|