列晒筛选
This commit is contained in:
11
src/components/Title/index.module.scss
Normal file
11
src/components/Title/index.module.scss
Normal file
@@ -0,0 +1,11 @@
|
||||
.titleContainer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
gap: 6px;
|
||||
}
|
||||
.title {
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 20px;
|
||||
}
|
||||
19
src/components/Title/index.tsx
Normal file
19
src/components/Title/index.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import styles from "./index.module.scss";
|
||||
interface IProps {
|
||||
title: string;
|
||||
className?: string;
|
||||
}
|
||||
const TitleComponent = (props: IProps) => {
|
||||
const { title, className } = props;
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
className={`${styles.titleContainer} ${className ? className : ""} `}
|
||||
>
|
||||
<div>图</div>
|
||||
<h1 className={styles.title}>{title}</h1>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
export default TitleComponent;
|
||||
Reference in New Issue
Block a user