mirror of
https://github.com/aleleba/react-list-ui-library.git
synced 2025-05-01 16:37:48 -06:00
24 lines
533 B
TypeScript
24 lines
533 B
TypeScript
import React, { FC } from 'react';
|
|
import './style.scss';
|
|
|
|
type TContainerListProps = {
|
|
/**
|
|
* Is this the title of the card.
|
|
*/
|
|
title?: string,
|
|
/**
|
|
* Is this the child component of the card. (The content)
|
|
*/
|
|
children?: JSX.Element,
|
|
};
|
|
|
|
const ContainerList: FC<TContainerListProps> = ({ title, children }) => {
|
|
return (
|
|
<div className="ContainerList">
|
|
<div className="title">{title}</div>
|
|
<div className="content">{children}</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export { ContainerList, TContainerListProps } |