Skip to content
Cloudflare Docs

rtk-draft-attachment-view

A component which renders the draft attachment to send

Properties

PropertyTypeRequiredDefaultDescription
attachment{ type: 'image' | 'file'; file: File; }-Attachment to display
iconPackIconPack1defaultIconPackIcon pack
tRtkI18n1useLanguage()Language

Usage Examples

Basic Usage

<rtk-draft-attachment-view></rtk-draft-attachment-view>

With Properties

<rtk-draft-attachment-view>
</rtk-draft-attachment-view>
<script>
const el = document.querySelector("rtk-draft-attachment-view");
el.attachment= {};
</script>