Hey everyone! Quick announcement that we released a public package that contains some common antd components to be used as code components.
To use it, just add the @plasmicpkgs/antd
package to your project and add to your plasmic-init
file:
import { registerAll } from "@plasmicpkgs/antd";
registerAll(loader); // for loader users
registerAll(); // for codegen users
We’ve added tooltips for the available props but we still recommend that you look at the antd documentation to fully understand the capabilities of each component.
In this package we also allow you to import specific components and also modify the way we register them by simply importing the component Meta like this:
import { buttonMeta, registerButton } from "@plasmicpkgs/antd";
const customButtonMeta = buttonMeta;
registerButton(undefined, customButtonMeta);
The package implementation can be found here. If you have any components you would like to use/see in this package, feel free to open a Pull Request and we’ll be happy to review it.
Remember to see our documentation about Code Components and the Component API.
Here’s a quick video showing the available components: