UNPKG

antd-mobile

Version:

<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />

10 lines 351 B
import React from 'react'; import { withNativeProps } from '../../utils/native-props'; const classPrefix = 'adm-auto-center'; export const AutoCenter = props => { return withNativeProps(props, React.createElement("div", { className: classPrefix }, React.createElement("div", { className: `${classPrefix}-content` }, props.children))); };