UNPKG

@n8d/htwoo-patterns

Version:

hTWOo Patterns to setup custom style guide

47 lines (31 loc) 1.23 kB
--- title: Tag (Static) order: 24 --- # Tag (Static) A non-interactive tag component for display purposes. ## Overview The static tag is a non-clickable meta component used when the tag is purely informational and doesn't require any interaction. ## Usage Static tags should be used when: * The tag is purely informational * The tag doesn't need to be clickable * The tag represents a status or state * The tag is used for visual grouping or categorization ## SCSS **Component Import** **SCSS Partial Location** ## CSS Classes * `.hoo-mtag` - Base tag class * `.hoo-mtag-lbl` - Inner text container ## Accessibility * Since static tags are not interactive, they don't receive focus * Use appropriate ARIA attributes for tags that convey state information: * For status tags: `role="status"` or appropriate ARIA live regions * For tags representing important metadata: consider `aria-label` on the container * Ensure sufficient color contrast for readability ## Customization Static tags can be customized with additional classes or styles for specific use cases: * Add custom background colors for status indicators * Use with icons for enhanced visual meaning * Apply additional classes for specific styling needs