@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
14 lines (13 loc) • 612 B
JavaScript
import { __assign, __rest } from "tslib";
import clsx from 'clsx';
import React from 'react';
import { getBaseProps } from '../internal/base-component';
import styles from './styles.css.js';
import { useTelemetry } from '../internal/hooks/use-telemetry';
export default function TextContent(_a) {
var children = _a.children, props = __rest(_a, ["children"]);
useTelemetry('TextContent');
var baseProps = getBaseProps(props);
var className = clsx(baseProps.className, styles['text-content']);
return (React.createElement("div", __assign({}, baseProps, { className: className }), children));
}