Modify container#
Specify container to make all generated styles (antd, antd-style) inserted under this node.
Modify style insertion point#
In general, it is not often needed. If you need to be compatible with the requirement of component style override, you can consider setting the insertion point of the component style to insert it after this node.
Enable speedy mode#
Enable emotion's speedy mode. It is recommended to be enabled for independent applications.
API#
Inherits from ant-design/cssinjs StyleProvider, other APIs are as follows:
| Property | Type | Description |
|---|---|---|
| prefix | string | Emotion style prefix, default value is acss |
| nonce | string | Random number used for CSP |
| stylisPlugins | StylisPlugin[] | Array of Stylis plugins |
| container | Element | Container for rendering styles |
| speedy | boolean | Whether to enable speedy mode, under speedy mode, real style will not be inserted, default is false |
| insertionPoint | HTMLElement | Style insertion point, used to control the insertion position of the first style |
| getStyleManager | (styleManager: StyleManager) => void | Callback function to get the styleManager instance |
| children | ReactNode | Child components |