feat: v0.0.3

This commit is contained in:
Gabe Farrell 2025-06-15 00:12:21 -04:00
parent 7ff317756f
commit 3250a4ec3f
21 changed files with 322 additions and 374 deletions

View file

@ -7,14 +7,14 @@ type Item = Album | Track | Artist;
interface Props<T extends Item> {
data: PaginatedResponse<T>
separators?: ConstrainBoolean
width?: number
type: "album" | "track" | "artist";
className?: string,
}
export default function TopItemList<T extends Item>({ data, separators, type, width }: Props<T>) {
export default function TopItemList<T extends Item>({ data, separators, type, className }: Props<T>) {
return (
<div className="flex flex-col gap-1" style={{width: width ?? 300}}>
<div className={`flex flex-col gap-1 ${className} min-w-[300px]`}>
{data.items.map((item, index) => {
const key = `${type}-${item.id}`;
return (