UNPKG

@vectara/vectara-ui

Version:

Vectara's design system, codified as a React and Sass component library

9 lines (8 loc) 642 B
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; import { createId } from "../../utils/createId"; import { VuiSpacer } from "../spacer/Spacer"; import { VuiTitle } from "../typography/Title"; export const VuiStat = ({ title, text }) => { const id = createId(); return (_jsxs(_Fragment, { children: [_jsx(VuiTitle, Object.assign({ size: "xl" }, { children: _jsx("p", Object.assign({ "aria-labelledby": id }, { children: text })) })), _jsx(VuiSpacer, { size: "xxs" }), _jsx(VuiTitle, Object.assign({ size: "xxs" }, { children: _jsx("p", Object.assign({ id: id }, { children: title })) }))] })); };