API / @aionbuilders/nabu

PlaceholdersConfig

Type Stability: stable

Definition

TypeScript
import type { PlaceholdersConfig } from '@aionbuilders/nabu';
TypeScript
interface PlaceholdersConfig {
  show?: 'focus' | 'empty';
  text?: Record<string, PlaceholderText>;
}

Properties

Properties of PlaceholdersConfig
PropertyTypeDescription
showoptional'focus' | 'empty'

'focus' (default): only the empty block holding the collapsed cursor shows its placeholder. 'empty': every empty block shows it.

textoptionalRecord<string, PlaceholderText>

Per block type overrides (false disables that type).

Source: src/lib/utils/placeholders.js:17