Skip to content

styles

The styles is a writable store that contains the custom classnames that you set for the form or globally.

Example

<script lang="ts">
import { faviform, setConfig } from '@tuentyfaiv/svelte-form';
import type { ContextStyles } from '@tuentyfaiv/svelte-form';
const styles: ContextStyles = {
// ...classnames
};
const form = faviform<Data>({ styles });
// or globally
setConfig(styles);
</script>