kibana/packages/shared-ux/file/context
2023-01-18 10:02:49 -07:00
..
src
index.ts
kibana.jsonc [codeowners] rename global experience to @elastic/appex-sharedux 2023-01-18 10:02:49 -07:00
package.json Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
README.mdx
tsconfig.json Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00

---
id: sharedUX/Components/FileContext
slug: /shared-ux/components/context
title: File component context
description: Context for shared ux file components
tags: ['shared-ux', 'context', 'files']
date: 2022-11-22
---

## Description

Context in which the Global Experience files components should live to access files client and more.

## Example

```tsx
const client = files.filesClientFactory.asUnscoped<MyImageMetadata>()
...
<FilesClient client={client}>
  <MyApp />
</FilesClient>
```