[nextgen/cardstack] add slot support to components

- migrate existing code to slots
- add interactiveComponent.activeColor to overwrite the default "selected" button style
- improve handling of cached components
This commit is contained in:
bignutty 2025-02-21 15:09:04 +01:00
parent e2c8a368c6
commit 668bb946a7
5 changed files with 173 additions and 88 deletions

View file

@ -112,7 +112,6 @@ module.exports = {
episodes_button: {
type: InteractiveComponentTypes.BUTTON,
label: "Episodes",
inline: false,
visible: true,
condition: (page) => {
return (page.getState("episodes_key") !== null)
@ -168,7 +167,6 @@ module.exports = {
characters_button: {
type: InteractiveComponentTypes.BUTTON,
label: "Characters",
inline: false,
visible: true,
condition: (page) => {
return (page.getState("characters_key") !== null)
@ -210,7 +208,6 @@ module.exports = {
related_button: {
type: InteractiveComponentTypes.BUTTON,
label: "Related",
inline: false,
visible: true,
condition: (page) => {
return (page.getState("related_key") !== null)