Skip to content
COMPONENT / DATA-DISPLAY

Item.

Baris ringkas dengan ikon DL, title, text, dan tautan opsional.

PHP + native HTML/CSSNo build

Preview

Your workspaceEverything in one place.
Try this component

Usage

Baris ringkas dengan ikon DL, title, text, dan tautan opsional. icon harus nama Solar Linear yang tersedia.

  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('item', ['title' => 'Your workspace', 'text' => 'Everything in one place.', 'label' => 'Try this component', 'href' => '/components', 'icon' => 'folder']) ?>

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.

Item props
PropType / valuesPanduan
titlestringJudul konten yang ditampilkan.
textstringIsi teks biasa; HTML di-escape.
labelstringTeks label, pemicu, atau nama aksesibel komponen.
hrefstringTautan lokal, fragment atau HTTPS yang lolos UI::href.
iconstringNama ikon koleksi solar-linear; cari dengan php dl icons.

Behavior & accessibility

Ikon bersifat dekoratif; label tautan menjelaskan aksi.

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/item.php. Edit template ini jika membutuhkan perilaku tambahan. API PHP DL berbeda dari API React sumber rujukan.

Terminal
php dl component item

Component guide · JavaScript & events · Styling

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