Przeglądaj źródła

fe-25 网页头组件

master
Chunxian Zhang 2 lat temu
rodzic
commit
065b84f32a
1 zmienionych plików z 12 dodań i 0 usunięć
  1. +12
    -0
      lazy-timer-fe/src/components/Header.jsx

+ 12
- 0
lazy-timer-fe/src/components/Header.jsx Wyświetl plik

@ -0,0 +1,12 @@
import React from 'react';
const Header = ({ category, title }) => (
<div className=" mb-10">
<p className="text-lg text-gray-400">{category}</p>
<p className="text-3xl font-extrabold tracking-tight text-slate-900">
{title}
</p>
</div>
);
export default Header;

Ładowanie…
Anuluj
Zapisz