Constconst SkillTagList: React.FC<SkillTagListProps> = ({ skills, type = 'tech', className = '' }) => {
const baseClasses = 'rounded-full px-3 py-1 text-sm font-medium';
const techClasses = 'bg-emerald-100 text-emerald-800 dark:bg-emerald-900 dark:text-emerald-200';
const softClasses = 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200';
const variantClasses = type === 'tech' ? techClasses : softClasses;
const ariaLabel = type === 'tech' ? 'Technology skills' : 'Soft skills';
return (
<ul className={`flex flex-wrap gap-2 ${className}`} aria-label={ariaLabel}>
{skills.map((skill) => (
<li key={skill} className={`${baseClasses} ${variantClasses}`}>
{skill}
</li>
))}
</ul>
);
};
Renders a list of skill tags with optional styling variants.
Example