hypnagaga/src/docs/actions/intro.mdx
hobbes7878 ef578b086a logos
2024-11-19 21:34:32 +00:00

14 lines
641 B
Text

import { Meta } from '@storybook/blocks';
import { parameters } from '../utils/docsPage.js';
<Meta title="Actions/Intro" parameters={{ ...parameters }} />
# Actions
Svelte [actions](https://svelte.dev/tutorial/actions) are arbitrary functions that run after Svelte "mounts" an element in the DOM.
But let's try a _less_ technical definition: Svelte actions are extra topping you can add to your HTML once it comes out of the oven.
These are little functions that do little, if often very useful, things on top of your code.
Have a look through the actions we have in this section to get a better idea and watch this space for more TK.