website-session-kit
Version:
A modular and extensible session management toolkit for modern websites.
8 lines (7 loc) • 717 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import IconText from '../IconText';
const ItemsList = ({ items, icon, iconSize = 'text-xl', iconColor, textSize = 'text-base', textColor, direction = 'column', spaceY = 'space-y-2', responsive = false, className = '', }) => {
const layoutClass = direction === 'column' ? `flex-col ${spaceY}` : 'flex-row flex-wrap gap-3';
return (_jsx("div", { className: `flex w-full ${layoutClass} ${className}`, children: items.map((item, index) => (_jsx(IconText, { text: item.text, icon: item.icon ?? icon, iconSize: iconSize, iconColor: iconColor, textSize: textSize, textColor: textColor, responsive: responsive }, item.key ?? index))) }));
};
export default ItemsList;