mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add typings for react-with-styles * Add typings for react-with-styles * Add typings for react-with-styles * fix header * Fix issues
10 lines
326 B
TypeScript
10 lines
326 B
TypeScript
import * as React from 'react';
|
|
import { withStyles, WithStylesProps, css } from 'react-with-styles';
|
|
|
|
const Component: React.FC<WithStylesProps> = ({ styles }) =>
|
|
React.createElement('div', { ...css(styles.wrapper) });
|
|
|
|
const StyledComponent = withStyles(({ unit }) => ({
|
|
wrapper: { borderRadius: unit },
|
|
}))(Component);
|