Bileşen Anatomisi ve Yapısı
Temel parçalarını, durumlarını ve çeşitlerini anlamak için yaygın kullanıcı arayüzü bileşenlerini ayrıştırın.
Bileşen Anatomisi ve Yapısı, CoddyKit'te ücretsiz bir Design Systems & Component Libraries dersidir. Bu, 4 dersinin 2. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Design Systems & Component Libraries öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Design Systems & Component Libraries kursu toplamda 4 dersten oluşur.
Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.
Deconstructing UI Components
Welcome! In this lesson, we'll explore the essential building blocks of user interface (UI) components.
Understanding component anatomy helps us create consistent designs and build UIs efficiently.
What Makes a Component?
Every UI component, from a simple button to a complex navigation bar, is made up of fundamental parts.
These parts fit together, much like LEGO bricks, to form the complete element and define its behavior.
Button: Basic Anatomy
Let's deconstruct a common component: a button.
A button typically has a visible container, text (a label), and sometimes an icon. These are its core anatomical parts.
<button class="my-button">
<span class="button-label">Click Me</span>
</button>Understanding Component States
Components aren't static! They react to user interactions or system conditions. These different reactions are called states.
States provide visual feedback, making the UI feel responsive and intuitive.
Common Component States
Here are some common states a component might have:
- Default: The initial, inactive appearance.
- Hover: When the mouse pointer is over the component.
- Focus: When the component is selected, usually via keyboard navigation.
- Active: While the component is being pressed or clicked.
- Disabled: When the component is temporarily inactive and cannot be interacted with.
Button States Example
Imagine a button's appearance changing:
- Default: Blue background, white text.
- Hover: Slightly darker blue background.
- Active: Even darker blue, perhaps with a subtle shadow.
- Disabled: Light gray background, lighter text, not clickable.
Component Variations & Types
Beyond states, components often come in different variations or types to fit various contexts. Think of them as different 'flavors' of the same component.
For example, a button might be 'Primary' (for main actions) or 'Secondary' (for less prominent actions).
Card: A More Complex Anatomy
A 'Card' is a common UI component that groups related information. Its anatomy is richer:
- Header: Title, subtitle.
- Media: Image or video.
- Body: Main text content.
- Actions: Buttons or links for interaction.
<div class="card">
<img src="placeholder.jpg" alt="Card Image" class="card-image">
<div class="card-content">
<h3>Card Title</h3>
<p>Short description text.</p>
</div>
<button class="card-action">Action</button>
</div>Data & Component Structure
Components can be made dynamic by accepting data, often called 'props'. This data can change their content or even their structural parts.
For example, a <Card> component might take title, imageSrc, and description props to customize its content.
Component State Check
Let's check your understanding of component states.
Recap: Anatomy & Structure
Great job! We've learned that UI components are built from smaller parts (anatomy) and react to interactions through different states (default, hover, focus, active, disabled).
Understanding anatomy, states, and variations is key to building consistent, user-friendly, and maintainable UIs.
Sıkça Sorulan Sorular
“Bileşen Anatomisi ve Yapısı” dersi ücretsiz mi?
Evet — “Bileşen Anatomisi ve Yapısı” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Design Systems & Component Libraries kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Design Systems & Component Libraries kursu toplamda 4 dersten oluşur.
“Bileşen Anatomisi ve Yapısı” dersinde ne öğreneceğim?
Temel parçalarını, durumlarını ve çeşitlerini anlamak için yaygın kullanıcı arayüzü bileşenlerini ayrıştırın. Design Systems & Component Libraries ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.
Design Systems & Component Libraries öğrenmeye başlamak için deneyim gerekli mi?
Önceden deneyim gerekmez. CoddyKit'te Design Systems & Component Libraries, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 2. dersidir.
“Bileşen Anatomisi ve Yapısı” dersi ne kadar sürer?
Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.
Bu Design Systems & Component Libraries dersinde kod yazıp çalıştırabilir miyim?
Evet. Her Design Systems & Component Libraries dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.
Bu kursun tüm dersleri
- Atomik Tasarım Metodolojisi
- Bileşen Anatomisi ve Yapısı
- Teknoloji Yığını Bileşenlerini Seçme
- Bileşenler İçin Adlandırma Kuralları