Skip to content

Commit

Permalink
feat: Add Icon Selector Widget
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbiscuit committed Feb 24, 2023
1 parent 3d7b7cb commit 619efd2
Show file tree
Hide file tree
Showing 9 changed files with 2,347 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/default/CategoryLayoutRenderer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';

const CategoryLayoutRenderer = (props) => {
const { categoryContent, resultsContent } = props;
return (
<div>
<h3 className="name">{categoryContent}</h3>
<div className="results">{resultsContent}</div>
</div>
);
};

export default CategoryLayoutRenderer;
9 changes: 9 additions & 0 deletions src/default/CategoryRenderer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import { Search, Grid, Header, Segment, Label } from 'semantic-ui-react';

const CategoryRenderer = (props) => {
const { name } = props;
return <div className="category-title">{name}</div>;
};

export default CategoryRenderer;
8 changes: 8 additions & 0 deletions src/default/ResultRenderer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
import { Icon, Popup } from 'semantic-ui-react';

const ResultRenderer = (props) => {
return <Popup trigger={<Icon name={props.name} />}>{props.name}</Popup>;
};

export default ResultRenderer;
Loading

0 comments on commit 619efd2

Please sign in to comment.