UNPKG

@tarojsx/ui

Version:

We reinvents the UI for Taro3+

19 lines 1.03 kB
import React from 'react'; import classNames from 'classnames'; import { View } from '@tarojs/components'; import { Icon } from './Icon'; import '../style/ListHeader.scss'; export const ListHeader = props => { const { className, style = {}, children, title, transparent = false, thumb, iconInfo, sticky = false, top, } = props; return (React.createElement(View, { className: classNames('at-list-header', { [`at-list-header--sticky`]: sticky, [`at-list-header--icon`]: iconInfo, [`at-list-header--transparent`]: transparent, [`at-list-header--thumb`]: thumb, }, className), style: Object.assign(Object.assign({}, style), { top }) }, React.createElement(View, { className: "at-list-header__text" }, iconInfo && React.createElement(Icon, Object.assign({ className: "at-list-header__icon" }, iconInfo)), title), React.createElement(View, { className: "at-list-header__right" }, children))); }; //# sourceMappingURL=ListHeader.js.map