Skip to content

eighteen73/matter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

258 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matter

Custom blocks and block editor enhancements from eighteen73.

Matter is our consolidated WordPress plugin for custom blocks and editor tooling. The focus is on practical, composable blocks built for real client work, with room to grow into a single home for all of our block editor enhancements over time.

Block list

An Embla powered carousel with flexible inner blocks. Compose the carousel from a viewport, navigation controls, and optional thumbnails, then drop any blocks you like inside the slides.

Attributes

  • emblaConfig
  • advancedEmblaConfig
  • advancedEmblaConfigMerge

Child blocks

The slide area. Add your slide content here, typically groups or other layout blocks.

Optional thumbnail navigation synced with the main carousel.

  • syncWithCarousel
  • activeThumbnailColor

Pagination dots for jumping between slides.

  • dotColor
  • dotActiveColor

A progress bar showing carousel position.

  • indicateCurrentPosition
  • barColor

Previous and next slide controls.

  • iconColor

An accessible tabbed interface for organising detailed content. Supports deep linking, responsive collapse into an accordion-style layout, and query-driven tab panels.

Attributes

  • activeTabIndex
  • deepLinking
  • deepLinkingUpdateHistory
  • collapses
  • collapsesOn
  • isQueryMode
  • stackOnMobile
  • stackedBreakpoint

Child blocks

The row of tab buttons.

  • tabBackgroundColor
  • tabActiveColor

An individual tab label. Supports optional media for richer tab designs.

  • label
  • mediaId
  • mediaType
  • posterId
  • focalPoint

The container for tab content. Can hold standard panels or a Query Loop for dynamic tabs.

  • tabPanelActiveColor

The content shown when a tab is active.

  • label
  • inQueryLoop

An interactive section that reveals content when triggered. Useful for toggles and inline expandable panels. Accepts a Trigger or Hamburger Trigger, plus Collapsible Content.

Attributes

  • type (popover or inline)
  • targetId

Child blocks

The panel revealed by the trigger.


A modal dialog for displaying content without leaving the page. Supports automatic opening on load, after a delay, on scroll, or when URL parameters match. Accepts a Trigger or Hamburger Trigger, plus Modal Content.

Attributes

  • targetId
  • triggerOnLoad
  • triggerDelay
  • triggerOnScroll
  • scrollSelector
  • scrollThreshold
  • urlTriggers
  • dismissedDuration

Child blocks

The dialog panel itself.

  • backdropColor
  • backdropOpacity
  • backdropBlur
  • width
  • height

A slide-in panel for off-canvas content, ideal for sidebars, filters, and mobile navigation. Accepts a Trigger or Hamburger Trigger, plus Drawer Content.

Attributes

  • targetId

Child blocks

The sliding panel.

  • backdropColor
  • backdropOpacity
  • backdropBlur
  • position (left, right, top, bottom)
  • width
  • height
  • layout

A button-based trigger for opening a Modal, Drawer, or Collapsible block. Wraps core Buttons so you can style the control however you like.

  • targetId

Used inside Modal, Drawer, and Collapsible blocks, but can also be used standalone.


An animated hamburger icon trigger for opening a Modal, Drawer, or Collapsible block. Useful for mobile menus and overlay panels.

  • label
  • showLabel

Used inside Modal, Drawer, and Collapsible blocks.


A dismiss button for Modal Content and Drawer Content.

  • label
  • showLabel
  • position
  • positionOffset

Used inside Modal Content and Drawer Content blocks.


Select and render an existing WordPress Navigation menu as a simplified, read-only block. Choose from simple, accordion, or drill-down layouts for submenus.

Attributes

  • ref
  • type (simple, accordion, drill-down)
  • submenuOpensOnClick
  • showSubmenuLabel
  • showSubmenuViewAll
  • layout
  • iconColor
  • accentColor
  • submenuTextColor
  • submenuBackgroundColor
  • submenuIconColor
  • backTextColor
  • backBackgroundColor
  • backIconColor
  • submenuDividerColor

Filters

Block registration

Individual blocks can be opted out of registration:

add_filter( 'matter_register_carousel', '__return_false' );

Replace carousel with any block folder slug from src/blocks/. The filter receives $should_register and $block_folder as arguments.

add_filter(
	'matter_register_navigation',
	function ( $should_register, $block_folder ) {
		// Conditionally disable on certain sites or post types.
		return $should_register;
	},
	10,
	2
);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors