Group = component(({ title, items }) => {
const { Title, List, Item, Symbol } = styled({
"Title:h3": {
fontWeight: "bold",
fontSize: "100%",
color: "$Cyan",
marginBottom: "0.5em"
},
"Item:li": { padding: "0px", margin: "0px", listStyleType: "none" },
"List:ul": { padding: "0px", margin: "0px", listStyleType: "none" },
"Symbol:span": {
display: "inline-flex",
"&:before": {
content: " ",
display: "inline-block",
minWidth: "2ch"
},
"&[data-type=moduleattribute]:before": {
content: "="
}
}
});
return H.div(
Title(title),
List(
$(items).map(({ name, type }) =>
Item(Symbol({ "data-type": type }, name))
)
)
);
})