Updating containers and mobile styles, allowing for local videos.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user