Attachment
Files the PDF carries, listed in the viewer, and an icon on the page that opens one.
Import them from @inkoxide/render. Examples, and how these components work together, are in the guide.
Attachment
An icon that opens a file of <Document attachments>, as a <Note> shows its text: it takes no room, and inside a <Text> it hangs from the line. Its colour is backgroundColor.
| Prop | Type | Description |
|---|---|---|
file (required) | string | The name of a file in <Document attachments>. |
icon | 'pushPin' | 'paperclip' | 'graph' | 'tag' | The icon: a push pin (the default), a paper clip, a bar chart or a tag. |
children | ReactNode | The text viewers show for the icon: strings and numbers. Default: the file's description or name. |
It also takes the shared props break, wrap, minPresenceAhead, fixed, pages, className, style, id, debug.
Synced from components/attachment.md in the inkoxide repository.