6 articles tagged #props on hackpile.dev.
- $props
Master $props rune: pass data, use destructuring with defaults, handle optional props, and build well-typed component interfaces.
- $bindable
Master Svelte 5's $bindable rune for two-way data binding between parent and child components with predictable state management.
- Advanced Props Patterns
Master advanced $props patterns in Svelte 5: rest props, $bindable, generics, TypeScript, and robust component architecture.
- Pass Service Data with $props
Learn how to pass data to components using Svelte 5's $props rune.
- Create PriceBadge Component
Build a simple PriceBadge component with props and default values.
- Spread Props
Learn to forward props flexibly using the spread operator with $props.