Go Main page
Go Main page

Web components

cover

components

Container

v.1.0.0 | Saturn

Import

1234
import { Container } from '@kubit-ui-web/react-components';
<Container variant="DEFAULT" title={{ content: 'Title', component: 'h4' }}>
  Text
</Container>;

Props

Let's delve into the versatility of the container component by examining all its avalaible props.

Note that the container component's default styling properties can be moderately adjusted through the ctv prop, in case the project do not need a full variant customization. This limited customization ensures a seamless balance between predefined aesthetic and your specific design requirements. Additionally, it's essential to highlight that Kubit always provided the option to full customized all the variants that your project needs.

PropertyDescriptionTypeDefault
variant
Required
Current variant of containerString-
titleTitle of the containerContainerTextType-
dataTestIdId for testingString-
ctvModify styles for the default version of the componentContainerPropsStylesType-