---
title: "createMixin"
source: "https://github.com/remix-run/remix/blob/remix@3.0.0/packages/component/src/runtime/mixins/mixin.ts#L346"
---

# createMixin

## Summary

Creates a typed mixin factory that can be passed through the `mix` prop.

## Signature

```ts
function createMixin<node extends EventTarget, args extends unknown[], props extends ElementProps>(
  type: MixinType<node, args, props>,
): MixinFactory<node, args, props>

```

## Parameters

### `type`

Mixin setup function.

## Returns

A function that captures mixin arguments and returns a descriptor.