# DirectiveDescriptor

**Kind:** Interface

**Source:** [`atloria-monorepo/packages/editor/src/plugins/directives/index.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/editor/src/plugins/directives/index.ts#L26)

Implement this interface to create a custom editor for markdown directives.
Pass the object in the `directivesPlugin` parameters.

## Properties

| Property | Type |
|---|---|
| `name` | `string` |
| `attributes` | `string[]` |
| `hasChildren` | `boolean` |
| `type` | `'leafDirective' | 'containerDirective' | 'textDirective'` |
| `Editor` | `React.ComponentType<DirectiveEditorProps<T>>` |
