reablocks
Version:
Component library for React
35 lines (33 loc) • 699 B
TypeScript
import { RedactTheme } from './RedactTheme';
import { FC } from 'react';
export interface RedactProps {
/**
* Classname of the element.
*/
className?: string;
/**
* Whether you can toggle the text or not.
*/
allowToggle?: boolean;
/**
* Number of characters to compact to.
*/
compactLength?: number;
/**
* The character to replace the text with.
*/
character?: string;
/**
* Text to show upon hover.
*/
tooltipText?: string;
/**
* Value to conceal.
*/
value?: string;
/**
* The theme for the Redact.
*/
theme?: RedactTheme;
}
export declare const Redact: FC<RedactProps>;