# @frankhoodbs/slot-helper

> Simple utilities to check if a slot is available or isn't empty

Latest version **5.0.0** (published 2026-03-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install @frankhoodbs/slot-helper
pnpm add @frankhoodbs/slot-helper
yarn add @frankhoodbs/slot-helper
bun add @frankhoodbs/slot-helper
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2026-03-04 |
| First published | 2023-10-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Frankhood Business Solutions s.r.l. |
| Maintainers | giando110188, frankhood-info, skill83, m.brandonisio |

## Links

- npm: https://www.npmjs.com/package/@frankhoodbs/slot-helper
- npm.io page: https://npm.io/package/@frankhoodbs/slot-helper

## Recent versions

- 5.0.0 (latest) — 2026-03-04
- 4.0.3 — 2025-11-26
- 4.0.2 — 2025-11-19
- 4.0.1 — 2025-11-12
- 4.0.0 — 2025-10-24
- 3.0.4 — 2025-07-17
- 3.0.3 — 2025-06-04
- 3.0.2 — 2025-05-27
- 3.0.1 — 2025-05-15
- 3.0.0 — 2025-04-24
- 2.0.4 — 2024-11-05
- 2.0.3 — 2024-10-24
- 2.0.2 — 2024-10-01
- 2.0.1 — 2024-09-30
- 1.2.12 — 2024-09-25
- … 27 more at https://npm.io/package/@frankhoodbs/slot-helper/versions

## README

# Slot helper

This is a composable used to check if a slot is available or is not empty.

![Version](https://img.shields.io/npm/v/@frankhoodbs/slot-helper)
![License](https://img.shields.io/npm/l/@frankhoodbs/slot-helper)

## Usage

```Typescript
import { useSlotsExtended } from '../src';
import type { VNode } from 'vue';

// Slots
const slots = defineSlots<{
  default?: () => VNode[];
  content?: () => VNode[];
}>();

// Composables
const { isSlotDefined, isSlotNotEmpty } = useSlotsExtended(slots);

// on the template v-if="isSlotNotEmpty('content')"
```

---
_Source: https://npm.io/package/@frankhoodbs/slot-helper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
