UNPKG

@gravity-ui/uikit

Version:

Gravity UI base styling and components

8 lines (7 loc) 656 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Label } from "../Label/index.js"; import { bTab } from "./constants.js"; export function TabContent({ icon, children, value, counter, label }) { return (_jsxs("div", { className: bTab('content'), children: [icon && _jsx("div", { className: bTab('icon'), children: icon }), _jsx("div", { className: bTab('title'), children: children || value }), counter !== undefined && _jsx("div", { className: bTab('counter'), children: counter }), label && (_jsx(Label, { className: bTab('label'), theme: label.theme, children: label.content }))] })); } //# sourceMappingURL=TabContent.js.map