Updating containers and mobile styles, allowing for local videos.

This commit is contained in:
Dan Chadwick
2024-08-25 19:36:28 -04:00
parent 7304c4b0d7
commit 025c63e1dd
11 changed files with 105 additions and 58 deletions

View File

@@ -10,8 +10,15 @@ props:
description: "The type of button to render"
# The enum directive restricts the possible values in the element to our list.
enum: ['primary', 'secondary', 'danger']
slots:
# Content to display in the chip.
button_text:
title: Button Text
description: The text for the button
link:
type: boolean
title: Link type
description: If true, output anchor element, else button.
uri:
type: string
title: Uri destination
description: The destination for the button.
text:
type: string
title: Text
description: The text for the button.

View File

@@ -5,6 +5,8 @@
]
%}
<button class="{{ classes|join(" ") }}">
{% block button_text %}{% endblock %}
</button>
{% if link %}
<a href="{{ uri }}" class="{{ classes|join(" ") }}">{{ text }}</a>
{% else %}
<button class="{{ classes|join(" ") }}">{{ text }}</button>
{% endif %}