apphouse
Version:
Component library for React that uses observable state management and theme-able components.
36 lines (35 loc) • 775 B
TypeScript
/**
* A button that toggles between play and pause states
*/
interface MediaButtonProps {
/**
* Whether the button is playing
*/
isPlaying: boolean;
/**
* A function that is called when the button is clicked
* @returns
*/
onToggle: () => void;
/**
* The width of the button
* @default 34
*/
width?: number;
/**
* The height of the button
* @default 34
*/
height?: number;
/**
* Whether the button is in record mode
* @default false
*/
record?: boolean;
}
/**
* A button that toggles between play and pause states
* @returns A react component
*/
export declare const MediaButton: (props: MediaButtonProps) => import("react/jsx-runtime").JSX.Element;
export {};