slottr

slottr

  • Docs
  • API
  • Help
  • Blog

›slottr API

slottr API

  • Slottable components
  • Filter Slot

Filter Slot

Equivalent of {children} for non-slottable elements. Can include a whitelist (include) or blacklist(exclude), otherwise filters out all slottable elements.

NameTypeDescription
scopeanyElements passed for filtering
excludeArray<SlotComponent>Array of slottable components for filtering out
includeArray<SlotComponent>Array of slottable components whitelisted for not being filtered. Overrides 'exclude'
allbooleanAutomatically include all non-slottable elements when doing include (on true)

or automatically exclude when doing exclude (on false) grouped? | boolean | Groups elements by component type

FilterSlot.SubSlot

Same as FilterSlot, but consumes a context from a slot with withContext enabled.

NameTypeDescription
scopeanyElements passed for filtering
← Slottable components
  • FilterSlot.SubSlot
slottr
Docs
Getting StartedGuidesAPI Reference
Community
Coming soon...
More
BlogGitHubStar
Copyright © 2019 kirillvy