We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3153397 commit e1deaa6Copy full SHA for e1deaa6
src/components/storybook/replaceContent/replaceContent.tsx
@@ -10,11 +10,12 @@ interface IReplaceContent extends AriaType {
10
height?: string;
11
id?: string;
12
role?: ROLES;
13
+ as?: React.ElementType;
14
}
15
16
export const ReplaceContent = ({ children, ...props }: IReplaceContent): JSX.Element => {
17
return (
- <ReplaceContentStyled {...props}>
18
+ <ReplaceContentStyled as={props.as} {...props}>
19
{!children ? <span>Replace here your Content</span> : children}
20
</ReplaceContentStyled>
21
);
0 commit comments