Skip to content

Commit

Permalink
add hr to elements
Browse files Browse the repository at this point in the history
<hr> => <View as="hr" />
  • Loading branch information
thedannywahl committed Feb 23, 2024
1 parent 5209d02 commit efdb85f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions isp-site/src/components/mdtoui.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ const filterChildrenProps = (props) => {
};

const mdtoui = {
hr: ({ node, ...props }) => (
<View
as={node.tagName}
shadow="topmost"
borderWidth="small"
margin="small none"
padding="none"
borderColor="primary"
{...props}
/>
),
a: ({ node, ...props }) => <Link to={node.href} {...props} />,
button: ({ node, ...props }) => <Button withBackground={false} {...props} />,
p: ({ node, ...props }) => <Text as={node.tagName} {...props} />,
Expand Down

0 comments on commit efdb85f

Please sign in to comment.