Skip to content

Components

The following Clerk UI components are available in Svelte Clerk:

The main difference is that the Svelte components use Snippets to render their content.

Here's an example of the <Show> component with a fallback message:

svelte
<script lang="ts">
	import { Show } from 'svelte-clerk/client';
</script>

<template>
	<Show when={{ permission: 'org:invoices:create' }}>
		{#snippet fallback()}
			<p>You do not have the permissions to create an invoice.</p>
		{/snippet}
	</Show>
</template>

To see list of available props for each components, visit the Clerk UI components documentation.