HomeVendure CoreShow hidden breadcrumbs...React HooksUseDetailComponentDataUseDetailComponentData@vendure/admin-uiSource Provides the data available to React-based CustomDetailComponents. Example Tsimport { Card, useDetailComponentData } from '@vendure/admin-ui/react';import React from 'react';export function CustomDetailComponent(props: any) { const { entity, detailForm } = useDetailComponentData(); const updateName = () => { detailForm.get('name')?.setValue('New name'); detailForm.markAsDirty(); }; return ( <Card title={'Custom Detail Component'}> <button className="button" onClick={updateName}> Update name </button> <pre>{JSON.stringify(entity, null, 2)}</pre> </Card> );} Signaturefunction useDetailComponentData<T = any>(): voidWas this chapter helpful?It was helpfulIt wasn't helpfulReport IssuePreviousReact HooksNextUseFormControlEdited Feb 2, 2026·Edit this page