Custom and net-new: Badge
Everything in this proposal that is not plain PDS v2.
Net-new components
None. This is the v2 .pds-badge.
Additions to existing PDS components
- On
.pds-badge: akbd.pds-badgerule that setsfont-family: inherit, so a badge rendered as akbdkeeps the page font instead of the browser's monospace.
Net-new props
as:'span' | 'kbd', default'span'. The element the badge renders as.
Custom CSS variables
None.
Raw values kept on purpose
None.