Skip to content
Back to skills

Ellipsis

ASecurity

Truncates text with expandable "..." toggle. Supports character limit and line-based truncation with responsive re-measurement.

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 27, 2026
developmenttypescript

Works with

  • cursor

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add reaviz/skills --skill ellipsis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ellipsis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ellipsis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/reaviz-ellipsis/badge)](https://www.skillsdirectory.com/skills/reaviz-ellipsis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Ellipsis

Truncates text with expandable "..." toggle. Supports character limit and line-based truncation with responsive re-measurement.

## Import

```tsx
import { Ellipsis } from 'reablocks';
```

## Ellipsis Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `value` | `string` | — | Text to truncate |
| `limit` | `number` | `256` | Character limit for truncation |
| `lines` | `number` | — | Number of lines to show (overrides character limit) |
| `expandable` | `boolean` | `true` | Allow expanding truncated text |
| `moreText` | `string` | `'...'` | Text for the expand button |
| `lessText` | `string` | `'Show less'` | Text for the collapse button |
| `removeLinebreaks` | `boolean` | `true` | Replace line breaks with spaces |
| `title` | `string \| false` | — | Hover title (defaults to full value, `false` to disable) |
| `className` | `string` | — | Additional CSS classes |
| `theme` | `EllipsisTheme` | — | Per-instance theme override |

## Basic Usage

```tsx
<Ellipsis value="A very long text string that exceeds the character limit..." />
```

## Non-Expandable

```tsx
<Ellipsis expandable={false} value={longText} />
{/* Shows truncated text with "..." but no expand button */}
```

## Line-Based Truncation

When `lines` is set, truncation is based on visible lines rather than character count. Responsive — re-measures on window resize.

```tsx
<div style={{ width: 250 }}>
  <Ellipsis lines={3} value={longText} />
</div>
```

## EllipsisTheme Interface

```typescript
interface EllipsisTheme {
  dots: string;  // Expand/collapse button styles (cursor-pointer, opacity)
}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.