@native-systems/react-crossword
Version:
A flexible, responsive, and easy-to-use crossword component for React apps
31 lines (30 loc) • 1.23 kB
TypeScript
/// <reference types="react" />
import PropTypes from 'prop-types';
import type { CluesData, Direction, EnhancedProps } from './types';
declare const directionCluesPropTypes: {
/** direction of this list of clues ("across" or "down") */
direction: PropTypes.Validator<string>;
/** a label to use instead of the (English) default */
label: PropTypes.Requireable<string>;
/** If loading the clues automatically fails, provide them directly. */
clues: PropTypes.Validator<any>;
};
export type DirectionCluesProps = EnhancedProps<typeof directionCluesPropTypes, {
direction: Direction;
clues?: CluesData;
}>;
declare function DirectionClues({ direction, label, clues, }: DirectionCluesProps): JSX.Element;
declare namespace DirectionClues {
var propTypes: {
/** direction of this list of clues ("across" or "down") */
direction: PropTypes.Validator<string>;
/** a label to use instead of the (English) default */
label: PropTypes.Requireable<string>;
/** If loading the clues automatically fails, provide them directly. */
clues: PropTypes.Validator<any>;
};
var defaultProps: {
label: undefined;
};
}
export default DirectionClues;