react-styles-injector
Version:
React component to inject scoped styles into the DOM. Client and server ready.
17 lines (16 loc) • 377 B
TypeScript
export interface IStyle {
hash: string;
styles: string;
}
export interface IStyledProps {
className?: string;
containerRef?: () => void;
id?: string;
children?: React.ReactNode;
styles?: IStyle[] | IStyle;
tag?: string;
initCache?: boolean;
onClick?: () => void;
asFragment?: boolean;
inlinedJSStyles?: object;
}