Open jameskoster opened 5 months ago
Indeed, that seems useful. However it's probably important to do that effort only if and when the need for this chip emerges organically.
In addition to badge fields in data views, another potential use case is https://github.com/WordPress/gutenberg/issues/57763.
But yes, no need to rush for only one or two applications.
Another potential use case for the badge: https://github.com/WordPress/gutenberg/issues/38277#issuecomment-2090312644
A recently-merged data views feature allows consumers to display field values as a 'badge' in grid layout. This is utilised in the Patterns page to communicate sync status:
This element will likely have applications beyond data views, so it may be worth extracting and converting to a reusable component.