@wordpress/components
Version:
UI components for WordPress.
1 lines • 978 B
Source Map (JSON)
{"version":3,"file":"row.mjs","names":[],"sources":["../../src/panel/row.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport { forwardRef } from '@wordpress/element';\nimport type { ForwardedRef } from 'react';\nimport type { PanelRowProps } from './types';\n\nfunction UnforwardedPanelRow(\n\t{ className, children }: PanelRowProps,\n\tref: ForwardedRef< HTMLDivElement >\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={ clsx( 'components-panel__row', className ) }\n\t\t\tref={ ref }\n\t\t>\n\t\t\t{ children }\n\t\t</div>\n\t);\n}\n\n/**\n * `PanelRow` is a generic container for rows within a `PanelBody`.\n * It is a flex container with a top margin for spacing.\n */\nexport const PanelRow = forwardRef( UnforwardedPanelRow );\nPanelRow.displayName = 'PanelRow';\n\nexport default PanelRow;\n"],"mappings":";;;;AAKA,SAAS,oBACR,EAAE,WAAW,YACb,KACC;CACD,OACC,oBAAC,OAAD;EACC,WAAY,KAAM,yBAAyB,SAAU;EAC/C;EAEJ;CACE,CAAA;AAEP;;;;;AAMA,MAAa,WAAW,WAAY,mBAAoB;AACxD,SAAS,cAAc"}