Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
julianbenegas committed Dec 13, 2024
1 parent f7aa887 commit 6847d6f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/basehub/src/react/svg/primitive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,19 @@ const parseStyleString = (styleString: string): React.CSSProperties => {
};

export const SVG = ({
content,
content: _content,
children,
components = DEFAULT_COMPONENTS,
}: {
content: string;
/**
* @deprecated Use `content` instead.
*/
children?: string;
components?: Partial<ComponentsOverride>;
}) => {
const content = _content ?? children;

// Merge default components with custom ones
const finalComponents = { ...DEFAULT_COMPONENTS, ...components };

Expand Down

0 comments on commit 6847d6f

Please sign in to comment.