UNPKG

@bitcobblers/wod-wiki-library

Version:

A specialized markdown-like workout syntax editor and runtime for defining workouts

20 lines (19 loc) 903 B
import { default as React } from 'react'; import { IActionButton } from '../../core/IActionButton'; import { IRuntimeEvent } from '../../core/IRuntimeEvent'; import { Subject } from 'rxjs'; export interface ButtonAnchorProps { /** The named target for this button anchor (e.g., "system", "runtime", "advanced") */ buttons: IActionButton[] | undefined; /** Optional CSS classes to apply to the container */ className?: string; /** Event input subject for dispatching button events */ input?: Subject<IRuntimeEvent>; /** Optional custom render function for buttons */ render?: (buttons: IActionButton[], onClick: (button: IActionButton) => void) => React.ReactNode; } /** * ButtonAnchor component for displaying buttons by named target. * Uses the ClockContext to receive target-specific button arrays. */ export declare const ButtonAnchor: React.FC<ButtonAnchorProps>;