Home > react-directus > DirectusAssetProps
Signature:
export interface DirectusAssetProps
Property | Modifiers | Type | Description |
---|---|---|---|
accessToken? | string | (Optional) The current user’s access token. | |
apiUrl? | string | (Optional) url to your Directus instance. | |
asset | DirectusAsset | The asset that should be rendered. | |
download? | boolean | (Optional) If the asset should be downloaded instead of rendered. | |
render | (args: DirectusAssetRenderer) => JSX.Element | A function that returns the React element to be rendered. |