Tags
Tags displays short category labels that wrap onto another line when needed. use them to help someone scan a collection, not as hidden buttons.
usage
svelte
<script>
import { Tags } from '@ciabi/loafkit-ui';
const tags = [
{ name: 'Gardening' },
{ name: 'Weekend', color: '#F4D89B', textColor: '#30240B' },
{ name: 'saved for later' }
];
</script>
<Tags {tags} />colors and links
the public Tag type also contains description, href and iconSrc, but Tags doesn’t render those fields. an href in the data won’t turn the label into a link. use ordinary anchors when categories should navigate, or Checklist when people need to select several categories.
API reference
Tags
Tag
one item supplied to Tags.