Skip to content

Is there a way to async import custom rendering components? #27

@simonhvc

Description

@simonhvc
<script lang="ts">
...
const components = {
		types: {
			Image: InlineImage
		},
		marks: {
			link: InlineLink
		}
	};
</script>

<div class="TextBlock max-width-center">
	<PortableText value={text} {components} />
</div>

Is there away for Image and Link to be imported async ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions