UNPKG

@instructure/ui-themeable

Version:

A UI component library made by Instructure Inc.

23 lines (18 loc) 545 B
import * as React from 'react'; export interface ApplyThemeProps { /** * set theme variables to override the defaults */ theme?: Object; /** * accepts only one child (children must be wrapped in a single component/element) */ children?: React.ReactNode; /** * Prevent overriding this theme via a child ApplyTheme component or theme props */ immutable?: boolean; } export class ApplyTheme extends React.Component<ApplyThemeProps, any> { render(): JSX.Element; }