@wordpress/preferences
Version:
Utilities for managing WordPress preferences.
16 lines (14 loc) • 477 B
JavaScript
const Section = ( { description, title, children } ) => (
<fieldset className="preferences-modal__section">
<legend className="preferences-modal__section-legend">
<h2 className="preferences-modal__section-title">{ title }</h2>
{ description && (
<p className="preferences-modal__section-description">
{ description }
</p>
) }
</legend>
<div className="preferences-modal__section-content">{ children }</div>
</fieldset>
);
export default Section;