diff --git a/README.md b/README.md index eb93e11..ae51cdc 100644 --- a/README.md +++ b/README.md @@ -92,8 +92,8 @@ Online demo: | align | object | | align config of tooltip. Please ref demo for usage example | | showArrow | boolean \| object | false | whether to show arrow of tooltip | | zIndex | number | | config popup tooltip zIndex | -| classNames | classNames?: { root?: string; inner?: string;}; | | Semantic DOM class | -| styles | styles?: {root?: React.CSSProperties;inner?: React.CSSProperties;}; | | Semantic DOM styles | +| classNames | classNames?: { root?: string; body?: string;}; | | Semantic DOM class | +| styles | styles?: {root?: React.CSSProperties;body?: React.CSSProperties;}; | | Semantic DOM styles | ## Important Note diff --git a/src/Popup.tsx b/src/Popup.tsx index 7e19976..2ab1184 100644 --- a/src/Popup.tsx +++ b/src/Popup.tsx @@ -8,17 +8,17 @@ export interface ContentProps { overlayInnerStyle?: React.CSSProperties; className?: string; style?: React.CSSProperties; - innerClassName?: string; + bodyClassName?: string; } export default function Popup(props: ContentProps) { - const { children, prefixCls, id, overlayInnerStyle: innerStyle, innerClassName, className, style } = + const { children, prefixCls, id, overlayInnerStyle: innerStyle, bodyClassName, className, style } = props; return (