🚚 Prepare reusable module for new VStack

This commit is contained in:
Philipp Stracker 2025-01-27 13:45:52 +01:00
parent a9e2f600ab
commit 4d60b8cff0
No known key found for this signature in database
3 changed files with 4 additions and 6 deletions

View file

@ -1,12 +1,12 @@
/**
* Temporary component, until the experimental HStack block editor component is stable.
* Temporary component, until the experimental VStack/HStack block editor component is stable.
*
* @see https://wordpress.github.io/gutenberg/?path=/docs/components-experimental-hstack--docs
* @file
*/
import classNames from 'classnames';
const HStack = ( { className, spacing = 3, children } ) => {
export const HStack = ( { className, spacing = 3, children } ) => {
const wrapperClass = classNames(
'components-flex components-h-stack',
className
@ -22,5 +22,3 @@ const HStack = ( { className, spacing = 3, children } ) => {
</div>
);
};
export default HStack;

View file

@ -1,7 +1,7 @@
import classNames from 'classnames';
import { CheckboxGroup } from '../../../../../ReusableComponents/Fields';
import HStack from '../../../../../ReusableComponents/HStack';
import { HStack } from '../../../../../ReusableComponents/Stack';
import StylingSection from './StylingSection';
const StylingSectionWithCheckboxes = ( {

View file

@ -1,7 +1,7 @@
import { RadioControl } from '@wordpress/components';
import classNames from 'classnames';
import HStack from '../../../../../ReusableComponents/HStack';
import { HStack } from '../../../../../ReusableComponents/Stack';
import StylingSection from './StylingSection';
const StylingSectionWithRadiobuttons = ( {