Interface | Description |
---|---|
DirectusAssetProps | |
DirectusAuthHook | A set of functions and data to manage authentication. |
DirectusContextType | Shape of the main context. |
DirectusImageCustomProps | Represents the Custom Transformations you can apply to an image. |
DirectusProviderProps |
Variable | Description |
---|---|
DirectusAsset | DirectusAsset is a React Component that renders an asset from your Directus API. |
DirectusImage | DirectusImage is a React Component that renders an image from your Directus API. |
DirectusProvider | DirectusProvider is a React Context Provider that provides an instance of the Directus SDK and the apiUrl to all child components. |
useDirectus | useDirectus is a React Hook that provides an instance of the Directus SDK and the apiUrl |
useDirectusAuth | A hook to access the Directus authentication state and methods. |
Type Alias | Description |
---|---|
AuthStates | Possible states of the authentication. |
DirectusAsset | Shape of a generic asset. |
DirectusAssetRenderer | Shape of the DirectusAsset component render prop. |
DirectusImageProps | Shape of the DirectusImage component props. |
DirectusImagePropsBase | Shape of a generic image component props. |
DirectusImagePropsDynamic | Shape of the DirectusImage component props, with dynamic props. |
DirectusImagePropsKeyed | Shape of the DirectusImage component props, with presetKey prop. |
DirectusImageRenderer | Shape of the DirectusImage component render prop. |
DirectusImageRendererDynamic | Shape of the DirectusImage component render prop, with dynamic props. |
DirectusImageRendererKeyed | Shape of the DirectusImage component render prop, with presetKey prop. |