File contents Imperative component API
[!NOTE] Vite is often used in standalone mode to build single page apps (SPAs) , which you can also build with SvelteKit .
[!NOTE] Vite is often used in standalone mode to build single page apps (SPAs) , which you can also build with SvelteKit .
Available Resources
Alternatives to SvelteKit
Editor tooling
Getting help
<script>
<script module>
<style>
$state.raw
$state.snapshot
$state.eager
Passing state into functions
Passing state across modules
$derived.by
Understanding dependencies
Overriding derived values
Deriveds and reactivity
Destructuring
Update propagation
$effect.pre
$effect.tracking
$effect.pending
$effect.root
When not to use $effect
Fallback values
Renaming props
Rest props
Updating props
Type safety
$props.id()
$inspect(...).with
$inspect.trace(...)
Tags
Element attributes
Component props
Spread attributes
Events
Text expressions
Comments
Keyed each blocks
Each blocks without an item
Else blocks
Snippet scope
Passing snippets to components
Typing snippets
Exporting snippets
Programmatic snippets
Snippets and slots
Styling
Attachment factories
Inline attachments
Conditional attachments
Passing attachments to components
Controlling when attachments re-run
Creating attachments programmatically
Converting actions to attachments
Function bindings
<input bind:value>
<input bind:checked>
<input bind:indeterminate>
<input bind:group>
<input bind:files>
<select bind:value>
<audio>
currentTime
playbackRate
paused
volume
muted
duration
buffered
seekable
seeking
ended
readyState
played
<video>
<img>
naturalWidth
naturalHeight
<details bind:open>
window and document
Contenteditable bindings
innerHTML
innerText
textContent
Dimensions
bind:this
bind:property for components
Typing
Local vs global
Built-in transitions
Transition parameters
Accessibility
Custom transition functions
Transition events
Animation Parameters
Custom animation functions
Attributes
The class: directive
Synchronized updates
Concurrency
Indicating loading states
Error handling
Server-side rendering
Forking
Caveats
Breaking changes
Specificity
Scoped keyframes
:global(...)
:global
Properties
Using transformError
Legacy APIs
options
URL: custom-elements#Component-options
When to use stores
svelte/store
Store contract
setContext and getContext
Using context with state
Mounting components with context
Replacing global state
onMount
onDestroy
tick
Deprecated: beforeUpdate / afterUpdate
mount
unmount
render
hydrate
Serialization
CSP
$state
$derived
$effect
{@attach ...}
function binding
URL: bind#Function-bindings
$inspect
createSubscriber
URL: svelte-reactivity#createSubscriber
$props
$inspect.trace
Events
Snippets
Each blocks
Using JavaScript variables in CSS
Styling child components
Context
Async Svelte
Avoid legacy features
Unit and component tests with Vitest
Component tests with Storybook
End-to-end tests with Playwright
<script lang="ts">
Preprocessor setup
tsconfig.json settings
target
verbatimModuleSyntax
isolatedModules
Typing $props
Generic $props
Typing wrapper components
Typing $state
The Component type
Enhancing built-in DOM types
Component lifecycle
Component options
Caveats and limitations
Exceptions
Minimum version requirements
#8566
sveltejs/kit#10172
#8516
#8515
198dbcf
#8488
Browser conditions for bundlers
rollup-plugin-svelte
svelte-loader
Removal of CJS related output
Stricter types for Svelte functions
Custom Elements with Svelte
SvelteComponentTyped is deprecated
Transitions are local by default
Default slot bindings
Preprocessors
New eslint package
Other breaking changes
#8628
polyfill
polyfill
#6750
#7947
#8763
here
Reactivity syntax changes
Event changes
Snippets instead of slots
Migration script
Components are no longer classes
<svelte:component> is no longer necessary
Whitespace handling changed
Modern browser required
Changes to compiler options
The children prop is reserved
Breaking changes in runes mode
Other breaking changes
I'm new to Svelte. Where should I start?
Where can I get support?
Are there any third-party resources?
How can I get VS Code to syntax-highlight my .svelte files?
Is there a tool to automatically format my .svelte files?
How do I document my components?
Does Svelte scale?
Is there a UI component library?
How do I test Svelte apps?
Svelte docs on testing
URL: /docs/svelte/testing
Setup Vitest using the Svelte CLI
Svelte Testing Library
Svelte Component Testing in Cypress
Example using uvu test runner with JSDOM
Test Svelte components using Vitest & Playwright
Component testing with WebdriverIO
Is there a router?
How do I write a mobile app with Svelte?
Can I tell Svelte not to remove my unused styles?
Is Svelte v2 still available?
How do I do hot module reloading?
SvelteComponent
migration guide
migration guide
migration guide
migration guide
SvelteComponentTyped
afterUpdate
beforeUpdate
createContext
createEventDispatcher
createRawSnippet
flushSync
fork
getAbortSignal
getAllContexts
getContext
hasContext
hydratable
hydrate
mount
onDestroy
onMount
setContext
settled
tick
unmount
untrack
Component
ComponentConstructorOptions
ComponentEvents
ComponentInternals
ComponentProps
ComponentType
EventDispatcher
Fork
MountOptions
Snippet
Action
ActionReturn
flip
AnimationConfig
FlipParams
createAttachmentKey
fromAction
Attachment
VERSION
compile
compileModule
migrate
parse
parseCss
preprocess
print
walk
AST
CompileError
CompileOptions
CompileResult
MarkupPreprocessor
ModuleCompileOptions
Preprocessor
PreprocessorGroup
Processed
Warning
backIn
backInOut
backOut
bounceIn
bounceInOut
bounceOut
circIn
circInOut
circOut
cubicIn
cubicInOut
cubicOut
elasticIn
elasticInOut
elasticOut
expoIn
expoInOut
expoOut
linear
quadIn
quadInOut
quadOut
quartIn
quartInOut
quartOut
quintIn
quintInOut
quintOut
sineIn
sineInOut
sineOut
on
asClassComponent
createBubbler
createClassComponent
handlers
nonpassive
once
passive
preventDefault
run
self
stopImmediatePropagation
stopPropagation
trusted
LegacyComponentType
Spring
Tween
prefersReducedMotion
spring
tweened
Spring
SpringOptions
SpringUpdateOptions
TweenOptions
Tweened
Updater
devicePixelRatio
innerHeight
innerWidth
online
outerHeight
outerWidth
screenLeft
screenTop
scrollX
scrollY
MediaQuery
SvelteDate
SvelteMap
SvelteSet
SvelteURL
SvelteURLSearchParams
createSubscriber
render
Csp
RenderOutput
Sha256Source
SyncRenderOutput
derived
fromStore
get
readable
readonly
toStore
writable
Readable
StartStopNotifier
Subscriber
Unsubscriber
Updater
Writable
blur
crossfade
draw
fade
fly
scale
slide
BlurParams
CrossfadeParams
DrawParams
EasingFunction
FadeParams
FlyParams
ScaleParams
SlideParams
TransitionConfig
Client errors
Server errors
Shared errors
Client warnings
Shared warnings
Understanding dependencies
Browser-only code
Component exports
Renaming props
Component events
Named slots
Fallback content
Passing data to slotted content
Creating a component
$set
$on
$destroy
Component props
Server-side component API
Additional Resources (Optional)
Optional snippets
How to Use This Skill
Reference these resources when working with Imperative component API.
1 --- 2 name: sveltefromllmstxt 3 description: Imperative component API 4 --- 5 6 # Imperative component API 7 8 > [!NOTE] Vite is often used in standalone mode to build [single page apps (SPAs)](../kit/glossary#SPA), which you can also [build with SvelteKit](../kit/single-page-apps). 9 10 [!NOTE] Vite is often used in standalone mode to build [single page apps (SPAs)](../kit/glossary#SPA), which you can also [build with SvelteKit](../kit/single-page-apps). 11 12 ## Available Resources 13 14 ### Alternatives to SvelteKit 15 16 ### Editor tooling 17 18 ### Getting help 19 20 ### `<script>` 21 22 ### `<script module>` 23 24 ### `<style>` 25 26 ### `$state.raw` 27 28 ### `$state.snapshot` 29 30 ### `$state.eager` 31 32 ### Passing state into functions 33 34 ### Passing state across modules 35 36 ### `$derived.by` 37 38 ### Understanding dependencies 39 40 ### Overriding derived values 41 42 ### Deriveds and reactivity 43 44 ### Destructuring 45 46 ### Update propagation 47 48 ### `$effect.pre` 49 50 ### `$effect.tracking` 51 52 ### `$effect.pending` 53 54 ### `$effect.root` 55 56 ### When not to use `$effect` 57 58 ### Fallback values 59 60 ### Renaming props 61 62 ### Rest props 63 64 ### Updating props 65 66 ### Type safety 67 68 ### `$props.id()` 69 70 ### $inspect(...).with 71 72 ### $inspect.trace(...) 73 74 ### Tags 75 76 ### Element attributes 77 78 ### Component props 79 80 ### Spread attributes 81 82 ### Events 83 84 ### Text expressions 85 86 ### Comments 87 88 ### Keyed each blocks 89 90 ### Each blocks without an item 91 92 ### Else blocks 93 94 ### Snippet scope 95 96 ### Passing snippets to components 97 98 ### Typing snippets 99 100 ### Exporting snippets 101 102 ### Programmatic snippets 103 104 ### Snippets and slots 105 106 ### Styling 107 108 ### Attachment factories 109 110 ### Inline attachments 111 112 ### Conditional attachments 113 114 ### Passing attachments to components 115 116 ### Controlling when attachments re-run 117 118 ### Creating attachments programmatically 119 120 ### Converting actions to attachments 121 122 ### Function bindings 123 124 ### `<input bind:value>` 125 126 ### `<input bind:checked>` 127 128 ### `<input bind:indeterminate>` 129 130 ### `<input bind:group>` 131 132 ### `<input bind:files>` 133 134 ### `<select bind:value>` 135 136 ### `<audio>` 137 138 - **`currentTime`** 139 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentTime 140 141 - **`playbackRate`** 142 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playbackRate 143 144 - **`paused`** 145 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/paused 146 147 - **`volume`** 148 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/volume 149 150 - **`muted`** 151 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/muted 152 153 - **`duration`** 154 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/duration 155 156 - **`buffered`** 157 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/buffered 158 159 - **`seekable`** 160 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/seekable 161 162 - **`seeking`** 163 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/seeking_event 164 165 - **`ended`** 166 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/ended 167 168 - **`readyState`** 169 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/readyState 170 171 - **`played`** 172 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/played 173 174 ### `<video>` 175 176 ### `<img>` 177 178 - **`naturalWidth`** 179 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/naturalWidth 180 181 - **`naturalHeight`** 182 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/naturalHeight 183 184 ### `<details bind:open>` 185 186 ### `window` and `document` 187 188 ### Contenteditable bindings 189 190 - **`innerHTML`** 191 - URL: https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML 192 193 - **`innerText`** 194 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText 195 196 - **`textContent`** 197 - URL: https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent 198 199 ### Dimensions 200 201 - **`clientWidth`** 202 - URL: https://developer.mozilla.org/en-US/docs/Web/API/Element/clientWidth 203 204 - **`clientHeight`** 205 - URL: https://developer.mozilla.org/en-US/docs/Web/API/Element/clientHeight 206 207 - **`offsetWidth`** 208 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetWidth 209 210 - **`offsetHeight`** 211 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight 212 213 - **`contentRect`** 214 - URL: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentRect 215 216 - **`contentBoxSize`** 217 - URL: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentBoxSize 218 219 - **`borderBoxSize`** 220 - URL: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/borderBoxSize 221 222 - **`devicePixelContentBoxSize`** 223 - URL: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize 224 225 ### bind:this 226 227 ### bind:_property_ for components 228 229 ### Typing 230 231 ### Local vs global 232 233 ### Built-in transitions 234 235 ### Transition parameters 236 237 ### Accessibility 238 239 ### Custom transition functions 240 241 ### Transition events 242 243 ### Animation Parameters 244 245 ### Custom animation functions 246 247 ### Attributes 248 249 ### The `class:` directive 250 251 ### Synchronized updates 252 253 ### Concurrency 254 255 ### Indicating loading states 256 257 ### Error handling 258 259 ### Server-side rendering 260 261 ### Forking 262 263 ### Caveats 264 265 ### Breaking changes 266 267 ### Specificity 268 269 ### Scoped keyframes 270 271 ### :global(...) 272 273 ### :global 274 275 - **`await`** 276 - URL: await-expressions 277 278 ### Properties 279 280 ### Using `transformError` 281 282 - **Legacy APIs** 283 - URL: legacy-overview 284 285 - **options** 286 - URL: custom-elements#Component-options 287 288 ### When to use stores 289 290 ### svelte/store 291 292 ### Store contract 293 294 ### `setContext` and `getContext` 295 296 ### Using context with state 297 298 ### Mounting components with context 299 300 ### Replacing global state 301 302 ### `onMount` 303 304 ### `onDestroy` 305 306 ### `tick` 307 308 ### Deprecated: `beforeUpdate` / `afterUpdate` 309 310 ### `mount` 311 312 ### `unmount` 313 314 ### `render` 315 316 ### `hydrate` 317 318 ### Serialization 319 320 ### CSP 321 322 ### `$state` 323 324 ### `$derived` 325 326 ### `$effect` 327 328 - **`{@attach ...}`** 329 - URL: @attach 330 331 - **function binding** 332 - URL: bind#Function-bindings 333 334 - **`$inspect`** 335 - URL: $inspect 336 337 - **`createSubscriber`** 338 - URL: svelte-reactivity#createSubscriber 339 340 ### `$props` 341 342 ### `$inspect.trace` 343 344 ### Events 345 346 ### Snippets 347 348 ### Each blocks 349 350 ### Using JavaScript variables in CSS 351 352 ### Styling child components 353 354 ### Context 355 356 ### Async Svelte 357 358 ### Avoid legacy features 359 360 ### Unit and component tests with Vitest 361 362 ### Component tests with Storybook 363 364 ### End-to-end tests with Playwright 365 366 ### `<script lang="ts">` 367 368 ### Preprocessor setup 369 370 ### tsconfig.json settings 371 372 - **`target`** 373 - URL: https://www.typescriptlang.org/tsconfig/#target 374 375 - **`verbatimModuleSyntax`** 376 - URL: https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax 377 378 - **`isolatedModules`** 379 - URL: https://www.typescriptlang.org/tsconfig/#isolatedModules 380 381 ### Typing `$props` 382 383 ### Generic `$props` 384 385 ### Typing wrapper components 386 387 ### Typing `$state` 388 389 ### The `Component` type 390 391 ### Enhancing built-in DOM types 392 393 ### Component lifecycle 394 395 ### Component options 396 397 - **`ShadowRootInit`**: You can pass a settings object that will be passed to `attachShadow()` when shadow root is created. 398 - URL: https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow#options 399 400 - **ElementInternals** 401 - URL: https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals#examples 402 403 ### Caveats and limitations 404 405 ### Exceptions 406 407 ### Minimum version requirements 408 409 - **#8566** 410 - URL: https://github.com/sveltejs/svelte/issues/8566 411 412 - **sveltejs/kit#10172** 413 - URL: https://github.com/sveltejs/kit/pull/10172 414 415 - **#8516** 416 - URL: https://github.com/sveltejs/svelte/issues/8516 417 418 - **#8515** 419 - URL: https://github.com/sveltejs/svelte/issues/8515 420 421 - **198dbcf** 422 - URL: https://github.com/sveltejs/svelte/commit/198dbcf 423 424 - **#8488** 425 - URL: https://github.com/sveltejs/svelte/issues/8488 426 427 ### Browser conditions for bundlers 428 429 - **`rollup-plugin-svelte`** 430 - URL: https://github.com/sveltejs/rollup-plugin-svelte/#usage 431 432 - **`svelte-loader`** 433 - URL: https://github.com/sveltejs/svelte-loader#usage 434 435 ### Removal of CJS related output 436 437 ### Stricter types for Svelte functions 438 439 - **#7224** 440 - URL: https://github.com/sveltejs/svelte/issues/7224 441 442 - **#7442** 443 - URL: https://github.com/sveltejs/svelte/pull/7442 444 445 - **#8136** 446 - URL: https://github.com/sveltejs/svelte/issues/8136 447 448 ### Custom Elements with Svelte 449 450 ### SvelteComponentTyped is deprecated 451 452 ### Transitions are local by default 453 454 ### Default slot bindings 455 456 ### Preprocessors 457 458 ### New eslint package 459 460 ### Other breaking changes 461 462 - **#8628** 463 - URL: https://github.com/sveltejs/svelte/pull/8628 464 465 - **polyfill** 466 - URL: https://github.com/eligrey/classList.js 467 468 - **polyfill** 469 - URL: https://github.com/theftprevention/event-constructor-polyfill/tree/master 470 471 - **#6750** 472 - URL: https://github.com/sveltejs/svelte/issues/6750 473 474 - **#7947** 475 - URL: https://github.com/sveltejs/svelte/issues/7947 476 477 - **#8763** 478 - URL: https://github.com/sveltejs/svelte/pull/8763 479 480 - **here** 481 - URL: https://github.com/sveltejs/language-tools/blob/master/docs/preprocessors/typescript.md#im-getting-deprecation-warnings-for-sveltejsx--i-want-to-migrate-to-the-new-typings 482 483 ### Reactivity syntax changes 484 485 ### Event changes 486 487 ### Snippets instead of slots 488 489 ### Migration script 490 491 ### Components are no longer classes 492 493 ### `<svelte:component>` is no longer necessary 494 495 ### Whitespace handling changed 496 497 ### Modern browser required 498 499 - **`Proxies`** 500 - URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy 501 502 - **`ResizeObserver`** 503 - URL: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver 504 505 ### Changes to compiler options 506 507 ### The `children` prop is reserved 508 509 ### Breaking changes in runes mode 510 511 ### Other breaking changes 512 513 ### I'm new to Svelte. Where should I start? 514 515 ### Where can I get support? 516 517 ### Are there any third-party resources? 518 519 ### How can I get VS Code to syntax-highlight my .svelte files? 520 521 ### Is there a tool to automatically format my .svelte files? 522 523 ### How do I document my components? 524 525 ### Does Svelte scale? 526 527 ### Is there a UI component library? 528 529 ### How do I test Svelte apps? 530 531 - **Svelte docs on testing** 532 - URL: /docs/svelte/testing 533 534 - **Setup Vitest using the Svelte CLI** 535 - URL: /docs/cli/vitest 536 537 - **Svelte Testing Library** 538 - URL: https://testing-library.com/docs/svelte-testing-library/example/ 539 540 - **Svelte Component Testing in Cypress** 541 - URL: https://docs.cypress.io/guides/component-testing/svelte/overview 542 543 - **Example using uvu test runner with JSDOM** 544 - URL: https://github.com/lukeed/uvu/tree/master/examples/svelte 545 546 - **Test Svelte components using Vitest & Playwright** 547 - URL: https://davipon.hashnode.dev/test-svelte-component-using-vitest-playwright 548 549 - **Component testing with WebdriverIO** 550 - URL: https://webdriver.io/docs/component-testing/svelte 551 552 ### Is there a router? 553 554 ### How do I write a mobile app with Svelte? 555 556 ### Can I tell Svelte not to remove my unused styles? 557 558 ### Is Svelte v2 still available? 559 560 ### How do I do hot module reloading? 561 562 ### SvelteComponent 563 564 - **migration guide** 565 - URL: https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes 566 567 - **migration guide** 568 - URL: https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes 569 570 - **migration guide** 571 - URL: https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes 572 573 - **migration guide** 574 - URL: https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes 575 576 ### SvelteComponentTyped 577 578 ### afterUpdate 579 580 ### beforeUpdate 581 582 ### createContext 583 584 ### createEventDispatcher 585 586 ### createRawSnippet 587 588 ### flushSync 589 590 ### fork 591 592 ### getAbortSignal 593 594 ### getAllContexts 595 596 ### getContext 597 598 ### hasContext 599 600 ### hydratable 601 602 ### hydrate 603 604 ### mount 605 606 ### onDestroy 607 608 ### onMount 609 610 ### setContext 611 612 ### settled 613 614 ### tick 615 616 ### unmount 617 618 ### untrack 619 620 ### Component 621 622 ### ComponentConstructorOptions 623 624 ### ComponentEvents 625 626 ### ComponentInternals 627 628 ### ComponentProps 629 630 ### ComponentType 631 632 ### EventDispatcher 633 634 ### Fork 635 636 ### MountOptions 637 638 ### Snippet 639 640 ### Action 641 642 ### ActionReturn 643 644 ### flip 645 646 ### AnimationConfig 647 648 ### FlipParams 649 650 ### createAttachmentKey 651 652 ### fromAction 653 654 ### Attachment 655 656 ### VERSION 657 658 ### compile 659 660 ### compileModule 661 662 ### migrate 663 664 ### parse 665 666 ### parseCss 667 668 ### preprocess 669 670 ### print 671 672 ### walk 673 674 ### AST 675 676 ### CompileError 677 678 ### CompileOptions 679 680 - **Content Security Policy** 681 - URL: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP 682 683 ### CompileResult 684 685 ### MarkupPreprocessor 686 687 ### ModuleCompileOptions 688 689 ### Preprocessor 690 691 ### PreprocessorGroup 692 693 ### Processed 694 695 ### Warning 696 697 ### backIn 698 699 ### backInOut 700 701 ### backOut 702 703 ### bounceIn 704 705 ### bounceInOut 706 707 ### bounceOut 708 709 ### circIn 710 711 ### circInOut 712 713 ### circOut 714 715 ### cubicIn 716 717 ### cubicInOut 718 719 ### cubicOut 720 721 ### elasticIn 722 723 ### elasticInOut 724 725 ### elasticOut 726 727 ### expoIn 728 729 ### expoInOut 730 731 ### expoOut 732 733 ### linear 734 735 ### quadIn 736 737 ### quadInOut 738 739 ### quadOut 740 741 ### quartIn 742 743 ### quartInOut 744 745 ### quartOut 746 747 ### quintIn 748 749 ### quintInOut 750 751 ### quintOut 752 753 ### sineIn 754 755 ### sineInOut 756 757 ### sineOut 758 759 ### on 760 761 ### asClassComponent 762 763 ### createBubbler 764 765 ### createClassComponent 766 767 ### handlers 768 769 ### nonpassive 770 771 ### once 772 773 ### passive 774 775 ### preventDefault 776 777 ### run 778 779 ### self 780 781 ### stopImmediatePropagation 782 783 ### stopPropagation 784 785 ### trusted 786 787 ### LegacyComponentType 788 789 ### Spring 790 791 ### Tween 792 793 ### prefersReducedMotion 794 795 ### spring 796 797 ### tweened 798 799 ### Spring 800 801 ### SpringOptions 802 803 ### SpringUpdateOptions 804 805 ### TweenOptions 806 807 ### Tweened 808 809 ### Updater 810 811 ### devicePixelRatio 812 813 ### innerHeight 814 815 ### innerWidth 816 817 ### online 818 819 ### outerHeight 820 821 ### outerWidth 822 823 ### screenLeft 824 825 ### screenTop 826 827 ### scrollX 828 829 ### scrollY 830 831 ### MediaQuery 832 833 ### SvelteDate 834 835 ### SvelteMap 836 837 ### SvelteSet 838 839 ### SvelteURL 840 841 ### SvelteURLSearchParams 842 843 ### createSubscriber 844 845 ### render 846 847 ### Csp 848 849 ### RenderOutput 850 851 ### Sha256Source 852 853 ### SyncRenderOutput 854 855 ### derived 856 857 ### fromStore 858 859 ### get 860 861 ### readable 862 863 ### readonly 864 865 ### toStore 866 867 ### writable 868 869 ### Readable 870 871 ### StartStopNotifier 872 873 ### Subscriber 874 875 ### Unsubscriber 876 877 ### Updater 878 879 ### Writable 880 881 ### blur 882 883 ### crossfade 884 885 ### draw 886 887 ### fade 888 889 ### fly 890 891 ### scale 892 893 ### slide 894 895 ### BlurParams 896 897 ### CrossfadeParams 898 899 ### DrawParams 900 901 ### EasingFunction 902 903 ### FadeParams 904 905 ### FlyParams 906 907 ### ScaleParams 908 909 ### SlideParams 910 911 ### TransitionConfig 912 913 - **fragment-defining tag** 914 - URL: https://github.com/sveltejs/svelte/issues/4697 915 916 ### Client errors 917 918 ### Server errors 919 920 ### Shared errors 921 922 ### Client warnings 923 924 ### Shared warnings 925 926 ### Understanding dependencies 927 928 ### Browser-only code 929 930 ### Component exports 931 932 ### Renaming props 933 934 ### Component events 935 936 ### Named slots 937 938 ### Fallback content 939 940 ### Passing data to slotted content 941 942 ### Creating a component 943 944 ### `$set` 945 946 ### `$on` 947 948 ### `$destroy` 949 950 ### Component props 951 952 ### Server-side component API 953 954 ## Additional Resources (Optional) 955 956 ### Optional snippets 957 958 ## How to Use This Skill 959 960 Reference these resources when working with Imperative component API.
hk-vk/skills/tree/main/registry/sveltefromllmstxt commit a5bc7ffaa7
Frequently asked questions How do I install the Sveltefromllmstxt skill? Run npx skillmds@latest add hk-vk/sveltefromllmstxt in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Sveltefromllmstxt skill do? Imperative component API It is listed under Web & Frontend on SkillMD.
Is Sveltefromllmstxt safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Sveltefromllmstxt? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Sveltefromllmstxt free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Sveltefromllmstxt? hk-vk (@hk-vk) published this skill. Their other Agent Skills are listed on their SkillMD profile.