@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
20 lines • 1.4 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import React from 'react';
import { Text } from '../../components/text/text';
import { TextComponentType } from '../../components/text/types/component';
import { ContainerStyled, HeaderStyled, ParentContainerStyled } from './container.styled';
const ContainerStandAloneComponent = ({ dataTestId = 'container', ...props }, ref) => {
return (_jsxs(ParentContainerStyled, { styles: props.styles, children: [_jsx(HeaderStyled, { styles: props.styles, children: _jsx(Text, { component: TextComponentType.H4, customTypography: props.styles.title, ...props.title, children: props.title?.content }) }), _jsx(ContainerStyled, { ref: ref, "data-testid": dataTestId, styles: props.styles, children: props.children })] }));
};
/**
* Represents the standalone container component.
* @see {@link https://kubit.es/standalone-components/container/container-standalone/}
*
* @function ContainerStandAloneComponent
* @category StandAlone Components
* @param {React.PropsWithChildren<IContainerStandAlone>} props - The props for the component.
* @param {React.ForwardedRef<HTMLDivElement>} ref - The ref for the component.
* @returns {JSX.Element} - The JSX element representing the container component.
*/
export const ContainerStandAlone = React.forwardRef(ContainerStandAloneComponent);
//# sourceMappingURL=containerStandAlone.js.map