# @birchui/solid API reference

> Solid components for Birch UI

```bash
npm install @birchui/solid
```

## @birchui/solid

### createSolidComponent

Kind: function. Import from `@birchui/solid`.

```ts
function createSolidComponent<TOptions, TEvents extends object, TWidget extends Widget<TOptions, TEvents>>(definition: WidgetDefinition<TOptions, TEvents, TWidget>): BirchComponent<TOptions, TEvents, TWidget>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `definition` | `WidgetDefinition<TOptions, TEvents, TWidget>` |  |

### BirchGrid

Kind: const. Import from `@birchui/solid`.

```ts
const BirchGrid: BirchGridComponent
```

### BirchComponent

Kind: type. Import from `@birchui/solid`.

```ts
type BirchComponent<TOptions, TEvents extends object, TWidget> = (
  props: BirchComponentProps<TOptions, TEvents, TWidget>,
) => JSX.Element;
```

### BirchComponentProps

Kind: type. Import from `@birchui/solid`.

```ts
type BirchComponentProps<TOptions, TEvents extends object, TWidget> = TOptions &
  EventHandlerProps<TEvents> & {
    class?: string;
    style?: JSX.CSSProperties | string;
    id?: string;
    ref?: TWidget | ((api: TWidget) => void);
  };
```

### BirchGridComponent

Kind: type. Import from `@birchui/solid`.

```ts
type BirchGridComponent = <TRow = RowData>(props: BirchGridProps<TRow>) => JSX.Element;
```

### BirchGridProps

Kind: type. Import from `@birchui/solid`.

```ts
type BirchGridProps<TRow = RowData> = BirchComponentProps<GridOptions<TRow>, GridEvents<TRow>, GridApi<TRow>>;
```

### EventHandlerProps

Kind: type. Import from `@birchui/solid`.

```ts
type EventHandlerProps<TEvents extends object> = {
  [K in keyof TEvents & string as `on${Capitalize<K>}`]?: (payload: TEvents[K]) => void;
};
```

## @birchui/solid/document

### BirchDocumentEditor

Kind: const. Import from `@birchui/solid/document`.

```ts
const BirchDocumentEditor: BirchComponent<DocumentEditorOptions, DocumentEditorEvents, DocumentEditorApi>
```

## @birchui/solid/pdf

### BirchPdfViewer

Kind: const. Import from `@birchui/solid/pdf`.

```ts
const BirchPdfViewer: BirchComponent<PdfViewerOptions, PdfViewerEvents, PdfViewerApi>
```

## @birchui/solid/scheduler

### BirchScheduler

Kind: const. Import from `@birchui/solid/scheduler`.

```ts
const BirchScheduler: BirchComponent<SchedulerOptions<SchedulerEvent, SchedulerResource>, SchedulerEvents<SchedulerEvent, SchedulerResource>, SchedulerApi<SchedulerEvent, SchedulerResource>>
```
