---
title: createMixin
source: https://github.com/remix-run/remix/blob/remix@3.0.0-beta.3/packages/ui/src/runtime/mixins/mixin.ts#L251
---

# 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.