A function library bundles reusable, stateless functions that components can use through editor binding. This reference documents the files that define a function library and the manifest fields that connect its implementation to the editor and runtime.
Function libraries are currently only available for Studio Two sites.
This reference includes the following articles:
- Function Library Extension Files and Code: The manifest and implementation files and how they correspond.
- About the Function Library Manifest: The manifest's top-level fields.
- Function Reference: The fields that declare a function, its parameters, and its return value.
- Function Library Resources Reference: The fields that identify the library's implementation.
- Editor React Types: The TypeScript types you can use for function parameters and return values.