@primer/react
Version:
An implementation of GitHub's Primer Design System using React
16 lines (15 loc) • 578 B
TypeScript
type UseListInteractionSettings = {
htmlContainer?: HTMLElement;
markdownValue: string;
onChange: (markdown: string) => void | Promise<void>;
disabled?: boolean;
dependencies?: Array<unknown>;
};
/**
* Adds support for list interaction to rendered Markdown.
*
* Currently only supports checking / unchecking list items - reordering and task-item to
* issue conversion are not supported yet.
*/
export declare const useListInteraction: ({ htmlContainer, markdownValue, onChange, disabled, dependencies, }: UseListInteractionSettings) => void;
export {};