<?php
declare(strict_types=1);
/** @var string $text */
$placement = (string) ($placement ?? 'above');
$wrapClass = 'field-tip' . ($placement === 'below' ? ' field-tip--below' : '');
?>
<span class="<?= esc($wrapClass, 'attr') ?>">
  <span class="field-tip-btn" tabindex="0" aria-label="설명">ⓘ</span>
  <span class="field-tip-panel" role="tooltip"><?= esc($text) ?></span>
</span>
