UNPKG

@tarojsx/ui

Version:

We reinvents the UI for Taro3+

13 lines 632 B
import React from 'react'; import classNames from 'classnames'; import { View } from '@tarojs/components'; import '../style/TabsPane.scss'; export const TabsPane = props => { const { className, style = {}, children, tabDirection = 'horizontal', index = 0, current = 0 } = props; return (React.createElement(View, { className: classNames('at-tabs-pane', { 'at-tabs-pane--vertical': tabDirection === 'vertical', 'at-tabs-pane--active': index === current, 'at-tabs-pane--inactive': index !== current, }, className), style: style }, children)); }; //# sourceMappingURL=TabsPane.js.map