popover.info
More detail about something, opened on hover, focus or press: what an icon-only button does, a full timestamp, where a number comes from
Read https://www.prongs.dev/docs/intents/popover/info.md and tell me whether popover.info fits what I am building.Popover intents
Example
1,284
<Popover intent="popover.info" label="About this number"
trigger={<Action intent="action.reveal" icon={<Info />} label="Where does this come from?" />}>
<Text intent="text.body">Active users in the last 30 days, counted once each.</Text>
</Popover>Connections
Choosing between neighbours
If it is
Use
More detail about something, opened on hover, focus or press: what an icon-only button does, a full timestamp, where a number comes from
popover.infoAnything the user acts on
popover.menu
For registry authors
Starter intents. These are the intents prongs add puts in your registry, shown in this site’s theme. Yours are your own registry.ts: rename, restyle and add to them, and see them with prongs add gallery.
What this intent is built from and its entry in components/prongs/registry.ts. You only need this to change how it looks or to add an intent like it.
How popover.info resolves, and its definition
Each layer adds to the one before it; a later class wins over an earlier one that sets the same thing.
surface.floatingFloats next to the element that opened it, flipping to stay on screen. Hidden while closed, whatever display the intent sets
surface-overlay m-1 inset-auto rounded-lg border border-surface-border shadow-lg [position-area:bottom_span-right] [position-try-fallbacks:flip-block,flip-inline] origin-top-left data-[align=end]:origin-top-right data-[align=end]:[position-area:bottom_span-left] transition-[opacity,scale,display,overlay] transition-discrete duration-150 ease-out [&:not(:popover-open)]:hidden [&:not(:popover-open)]:scale-95 [&:not(:popover-open)]:opacity-0 starting:[&:popover-open]:scale-95 starting:[&:popover-open]:opacity-0 motion-reduce:transition-none
popover.infoMore detail about something, opened on hover, focus or press: what an icon-only button does, a full timestamp, where a number comes from
max-w-72 p-3 text-sm
surface-overlay m-1 inset-auto rounded-lg border border-surface-border shadow-lg [position-area:bottom_span-right] [position-try-fallbacks:flip-block,flip-inline] origin-top-left data-[align=end]:origin-top-right data-[align=end]:[position-area:bottom_span-left] transition-[opacity,scale,display,overlay] transition-discrete duration-150 ease-out [&:not(:popover-open)]:hidden [&:not(:popover-open)]:scale-95 [&:not(:popover-open)]:opacity-0 starting:[&:popover-open]:scale-95 starting:[&:popover-open]:opacity-0 motion-reduce:transition-none max-w-72 p-3 text-sm
'popover.info': {
kind: 'semantic',
description: 'More detail about something, opened on hover, focus or press: what an icon-only button does, a full timestamp, where a number comes from',
refs: ['surface.floating'],
binding: { classes: 'max-w-72 p-3 text-sm' },
notFor: [{ context: 'anything the user acts on', instead: 'popover.menu' }],
},