carbon-react
Version:
A library of reusable React components for easily building user interfaces.
15 lines (14 loc) • 495 B
TypeScript
interface ApplyBaseThemeArgs {
theme: object;
[key: string]: unknown;
}
/**
* To be used by a styled component, this util applies Carbon's base theme to the component if no theme is provided from a parent `ThemeProvider`.
* Otherwise, it preserves the provided theme.
*
* @see {@link https://styled-components.com/docs/api#themeprovider | `ThemeProvider`} docs
*/
declare const _default: ({ theme, ...props }: ApplyBaseThemeArgs) => {
theme: object;
};
export default _default;