HMT
HỮU MINH TRẦN
Category Manager - Copy this React, Tailwind Component to your project
Adjust for better look: import React from "react"; export default function CategoryManager({ categories }) { return( <div className="space y 4"> {categories.map((category) => ( <div key={category.id} className="bg white p 4 rounded lg shadow lg flex justify between items center"> <div> <h4 className="text lg font medium text gray 900">{category.name}</h4> <p className="text sm text gray 600">{category.description}</p> </div> <div className="flex space x 4"> <button className="text indigo 600 hover:text indigo 900">Edit</button> <button className="text red 600 hover:text red 900">Delete</button> </div> </div> ))} </div> ); };
Prompt
