---
title: "createMixin"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/component/src/runtime/mixins/mixin.ts#L358"
---

# 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>,
  options: MixinOptions,
): MixinFactory<node, args, props>

```

## Parameters

### `type`

Mixin setup function.

### `options`

Server rendering options.

## Returns

A function that captures mixin arguments and returns a descriptor.