@wordpress/components
Version:
UI components for WordPress.
21 lines (20 loc) • 474 B
text/typescript
export type ResponsiveWrapperProps = {
/**
* The intrinsic width of the element to wrap. Will be used to determine the aspect ratio.
*/
naturalWidth?: number;
/**
* The intrinsic height of the element to wrap. Will be used to determine the aspect ratio.
*/
naturalHeight?: number;
/**
* The element to wrap.
*/
children: React.ReactElement;
/**
* If true, the wrapper will be `span` instead of `div`.
*
* @default false
*/
isInline?: boolean;
};