-- fastn.dependency: fastn-community.github.io/button
button
inside your .ftd
file-- import: fastn-community.github.io/button
button.button
inside your .ftd
files-- button.button: SECONDARY
role: secondary
large: true
link: index.html
button
component.title
required
)button
component.role
required
)button
component. Use role as primary
secondary
or tertiary
as per your need.large
required
)large
button then add this property value as true
. Use
extra-large
, medium
or small
and add its value as true
as per your
need.link
optional
)It's used to add link to button component. If you are not using link
property
then, you can add $on-click$
event incase you want to add on-click
function.
-- boolean $toggle-event: false
-- button.button: Show modal
role: secondary
large: true
$on-click$: $ftd.toggle($a = $toggle-event)
-- modal-cover.modal-cover: Sign Up!
$open: $toggle-event
show-form: true
placeholder: Your email address here
cta-text: Continue
footer: What is it? [Terms and conditions](modal-cover/)
25% Off On Your First Purchase* Enter code WELCOME at checkout
Discover new apps, things to do & more great news added daily!