1e41f4b71Sopenharmony_ci# ContentSlot
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciThe **ContentSlot** component is a component designed to render and manage components created on the native layer using C APIs.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ciWith support for hybrid development, the **ContentSlot** component is recommended when the container is an ArkTS component and the child component is created on the native side.
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci> **NOTE**
8e41f4b71Sopenharmony_ci>
9e41f4b71Sopenharmony_ci> The initial APIs of this module are supported since API version 12. Newly added APIs will be marked with a superscript to indicate their earliest API version.
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci## APIs
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ciContentSlot(content: Content)
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ciCalled when content is added to a placeholder component
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci**Parameters**
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci| Name | Type| Mandatory| Description                                                    |
24e41f4b71Sopenharmony_ci| ------- | -------- | ---- | ------------------------------------------------------------ |
25e41f4b71Sopenharmony_ci| content | [Content](../js-apis-arkui-Content.md)  | Yes  | Manager of the **ContentSlot** component. Through the APIs provided by the native side, it can register and trigger the attach and detach event callbacks for **ContentSlot**, as well as manage the child components of **ContentSlot**.|
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci**Example**
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci```ts
30e41f4b71Sopenharmony_ciimport { nativeNode } from'libNativeNode.so' // .so file you implemented
31e41f4b71Sopenharmony_ciimport { NodeContent } from '@kit.ArkUI'
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ci@Entry
34e41f4b71Sopenharmony_ci@Component
35e41f4b71Sopenharmony_cistruct Parent {
36e41f4b71Sopenharmony_ci    private nodeContent: Content = new NodeContent();
37e41f4b71Sopenharmony_ci
38e41f4b71Sopenharmony_ci    aboutToAppear() {
39e41f4b71Sopenharmony_ci        // Create a node through the C API and add it to the nodeContent manager.
40e41f4b71Sopenharmony_ci        nativeNode.createNativeNode(this.nodeContent);
41e41f4b71Sopenharmony_ci    }
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ci    build() {
44e41f4b71Sopenharmony_ci        Column() {
45e41f4b71Sopenharmony_ci            // Display the native components stored in the nodeContent manager.
46e41f4b71Sopenharmony_ci            ContentSlot(this.nodeContent)
47e41f4b71Sopenharmony_ci        }
48e41f4b71Sopenharmony_ci    }
49e41f4b71Sopenharmony_ci}
50e41f4b71Sopenharmony_ci```
51e41f4b71Sopenharmony_ci<!--no_check-->