Skip to content
COMPONENT / DATA-DISPLAY

Dual-tone heading.

One semantic heading with a separately colored accent line, editable in the visual page builder.

PHP + static CSSNo build

Preview

Let’s talk.Make something good.

Usage

Use when one phrase needs visual emphasis without splitting the document heading structure.

  1. Gunakan layout DL yang sudah memuat CSS dan dl.js.
  2. Letakkan kode berikut di view PHP Anda.
  3. Ganti data contoh dengan nilai aplikasi. Teks di-escape otomatis.
PHP view
<?= component('dual-tone-heading', ['text' => 'Let’s talk.', 'accent' => 'Make something good.', 'level' => '2']) ?>

API reference

Props PHP yang didukung implementasi DL. Field di dalam array mengikuti bentuk pada kolom Type. Props yang tidak dicantumkan tidak menjadi bagian API komponen.

Dual-tone heading props
PropType / valuesPanduan
textstringPrimary escaped heading line.
accentstringEscaped line receiving the theme accent color.
level1|2|3|4Semantic heading level.

Behavior & accessibility

Both escaped text fragments remain inside a single h1-h4 selected by level. Color is decorative and must not be the only source of meaning.

Uji keyboard, fokus, dan pembaca layar pada halaman aplikasi Anda. Contoh ini tidak menggantikan audit aksesibilitas aplikasi secara menyeluruh.

Source & agent context

Source tersedia di views/components/dual-tone-heading.php. Edit template ini jika membutuhkan perilaku tambahan. API PHP DL berbeda dari API React sumber rujukan.

Terminal
php dl component dual-tone-heading

Component guide · JavaScript & events · Styling

Icons: Solar by 480 Design (CC BY 4.0) & Iconsax (MIT). PHP UI adapted from Coordiation. Logo: DesignLof.