# clanbite_render_component()

Render a component. Returns an empty string when it (or something it requires) is not available.

```php
clanbite_render_component( string $slug, array $args = array() ): string
```

## Parameters

- `$slug` (string) Component slug.
- `$args` (array<string, mixed>) Arguments for the component. `surface` (where it is shown: `feed`, `forums`…) is understood by every component and becomes the class `is-{surface}`; `viewer_id` defaults to the current user.

## Return

`string` HTML as the component printed it (the provider escapes it).

## Changelog

| Version | Description |
| --- | --- |
| 1.6.3 | Introduced |
