diff --git a/lib/common/layout.ts b/lib/common/layout.ts index c59c441..36bbefc 100644 --- a/lib/common/layout.ts +++ b/lib/common/layout.ts @@ -88,6 +88,8 @@ export interface CommonComponentProps extends CommonLayoutProps { cadModel?: CadModelProp children?: any symbolName?: string + width?: string | number + height?: string | number } export const commonComponentProps = commonLayoutProps @@ -98,6 +100,8 @@ export const commonComponentProps = commonLayoutProps cadModel: cadModelProp.optional(), children: z.any().optional(), symbolName: z.string().optional(), + width: distance.optional(), + height: distance.optional(), }) type InferredCommonComponentProps = z.input diff --git a/package.json b/package.json index 3ea3162..ca3ec65 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "author": "", "license": "ISC", "devDependencies": { - "@biomejs/biome": "^1.9.2", + "@biomejs/biome": "^1.9.3", "@tscircuit/layout": "^0.0.11", "@tscircuit/soup": "^0.0.69", "@types/bun": "^1.1.8",