Hi all,
If I have the App:
//App.tsx
...
export function App({
className,
children,
...rest
}: AppProps) {
return (
<Container
className={className}
maxW="lg" py={{ base: '12', md: '24' }} px={{ base: '0', sm: '8' }}>
...
With this registration:
....
export function registerLoginWithCentredForm(){
registerComponent(App, {
name: 'LoginWithCentredForm',
importPath: "./components/chakra/chakraPro/Application/Authentication/LoginWithCentredForm",
props: {
children: {
type: 'slot',
defaultValue: [
{ type: "component", name: getPlasmicComponentName("Container"),
props: {
py: '12',
px: '0',
maxW: "lg",
centerContent: false,
},
...
with this sub component registration:
import { BoxProps } from "@chakra-ui/react";
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
import { getComponentNameAndImportMeta } from "./utils";
export const containerMeta: CodeComponentMeta<BoxProps> = {
...getComponentNameAndImportMeta("Container"),
props: {
py: {
type: "number",
defaultValue: 12,
},
px: {
type: "number",
defaultValue: 0,
},
},
};
Then Why can’t I see container props appear in Plasmic UI?
Any help appreciated.