Hooks

Discover the Lapikit hooks

Lapikit hooks integrate additional features directly onto your Svelte workflow. They manage internal states and background logic, allowing you to focus on developing important features. Instead of juggling event listeners or intricate prop chains, Lapikit hooks keep everything responsive and in sync with minimal effort on your part.

Stores

Lapikit provides reactive Svelte stores for managing global state in your application. These stores manage critical information such as the active theme (dark/light), screen size, and display statuses, keeping everything in sync automatically.

$breakpoints

Tracks viewport sizes for responsive layouts

$devices

Detects active device type (mobile, tablet, desktop)

$theme

Stores and syncs the active theme and color scheme

Actions

Lapikit hooks integrate additional features directly onto your Svelte workflow. They manage internal states and background logic, allowing you to focus on developing important features. Instead of juggling event listeners or intricate prop chains, Lapikit hooks keep everything responsive.w

UseAccordion

Controls accordion open/close states and syncs sections automatically

UseTheme

Manages theme switching and keeps dark/light modes in sync across the app