UNPKG

lincd-ui

Version:

21 lines (20 loc) 781 B
import React from 'react'; import { Shape } from 'lincd/shapes/Shape'; import { PropertyShape } from 'lincd/shapes/SHACL'; export interface AvatarEditorProps { of?: Shape; property?: PropertyShape; /** * Converts the value returned by the shape, to the input string for the avatar * @param shapePropertyValue * @returns */ preConvertValueFn?: (shapePropertyValue: any) => string; /** * Converts the value of the avatar to a value that can be provided to the set method of the shape * @param inputValue * @returns */ postConvertValueFn?: (inputValue: string) => any; } export declare const AvatarEditor: ({ of, property, preConvertValueFn, postConvertValueFn, ...restProps }: AvatarEditorProps) => React.JSX.Element;