Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export declare function ThemeProvider<
>(props: T): JSX.Element;
export declare function useTheme(): DefaultTheme;
export interface ThemeProp {
theme?: DefaultTheme;
theme: DefaultTheme;
}
interface AsProps {
as?: ValidComponent;
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function setup(prefixer, shouldForwardProp = null) {
const ThemeContext = createContext();
export function ThemeProvider(props) {
return createComponent(ThemeContext.Provider, {
value: props.theme,
value: props.theme || {},
get children() {
return props.children;
}
Expand Down