/**
* Playground snippets — tooltip.
*/
export /**
*
*/
const TOOLTIP_DEFAULT = `
// Help next to a label. Ghost info icon; opens on hover, focus, or tap.
// No overlay provider needed — uses CDK like select / action-menu.
import { TooltipComponent } from '@africanies/africanies-ui';
@Component({
imports: [TooltipComponent],
template: \`
\`,
})
export class Example {}
`;
export /**
*
*/
const TOOLTIP_CUSTOM_TRIGGER = `
// Wrap any control and mark it with africaniesTooltipTrigger — default info icon hides.
import { ButtonComponent, TooltipComponent, TooltipTriggerDirective } from '@africanies/africanies-ui';
@Component({
imports: [ButtonComponent, TooltipComponent, TooltipTriggerDirective],
template: \`
\`,
})
export class Example {}
`;
export /**
*
*/
const TOOLTIP_PLACEMENT = `
// placement prefers a side; CDK flips if there’s no room.
// 'top' | 'bottom' | 'left' | 'right' (default 'top').
`;
export /**
*
*/
const TOOLTIP_FORM_LABEL = `
// Label + tip beside it — don’t wrap the input itself.
import { TextInputComponent, TooltipComponent } from '@africanies/africanies-ui';
@Component({
imports: [TextInputComponent, TooltipComponent],
template: \`
\`,
})
export class Example {
tracking = '';
}
`;