@cbinsights/fds
Version:
Form: A design system by CB Insights
15 lines (14 loc) • 455 B
TypeScript
/**
* Common pattern where we use href to generate whether
* an href or a button is returned, and also allow a master
* override where you can specify any element / component as
* the root
*/
import React from 'react';
interface BaseElementArgs {
href?: string;
onClick?: boolean | React.MouseEventHandler | (() => void);
as?: any;
}
declare const baseElement: ({ href, onClick, as }: BaseElementArgs) => any;
export default baseElement;