---
title: "SW10006: Unavailable style.forward()"
description: "style.forward() is used through an entrypoint that does not provide it."
image: "https://stillwind.dev/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://stillwind.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# SW10006: Unavailable style.forward()

This error occurs when the code calls `style.forward()` through the Lit,
Alpine, or vanilla entrypoint. These entrypoints have no component props to
forward, so they do not provide `style.forward()`.

## Reported

```ts
import { style } from "stillwind/vanilla";

export const props = (attributes: { class?: string }) => style("p-4", style.forward(attributes));
```

> SW10006: style.forward() is not available from `stillwind/vanilla`

## Fixed

```ts
import { style } from "stillwind/vanilla";

export const props = (attributes: { class?: string }) => style("p-4", { class: attributes.class });
```

## How to fix

- Pass the received classes in a `class` field, as in `{ class: attributes.class }`.
  A `class` field passes classes only. To set inline style values, use custom
  properties such as `{ "--size": value }`.

Source: https://stillwind.dev/docs/errors/SW10006/index.mdx
