13 lines
506 B
TypeScript
13 lines
506 B
TypeScript
import { cva } from 'class-variance-authority';
|
|
|
|
/** Under the ⓘ, its start on the icon's, on the inverse surface. */
|
|
export const infoTipVariants = cva(
|
|
'pointer-events-none absolute start-0 top-[calc(100%+0.25rem)] z-menu hidden w-max max-w-[16.25rem] rounded-sm bg-surface-inverse px-3 py-1.5 text-start whitespace-normal shadow-2 group-hover:block group-has-[:focus-visible]:block',
|
|
{
|
|
variants: {
|
|
open: { true: 'block', false: '' },
|
|
},
|
|
defaultVariants: { open: false },
|
|
},
|
|
);
|