@equinor/fusion-react-utils
Version:
Helper and util functions for React
7 lines • 400 B
TypeScript
/**
* Utility to remove empty attributes from properties, JSX does not comply with the W3 standard
* [W3](https://www.w3.org/TR/2008/WD-html5-20080610/semantics.html#boolean)
*/
export declare const elementAttributes: <T extends Partial<Record<keyof T, unknown>> = Record<string, unknown>>(props: Partial<T>) => T;
export default elementAttributes;
//# sourceMappingURL=element-attributes.d.ts.map