@visual-framework/vf-component-generator
Version:
Make the config for Visual Framework component interactively.
32 lines (31 loc) • 1.21 kB
YAML
# The title shown on the component page
title: <%= componentName %>
# Label shown on index pages
label: <%= componentName %>
status: live
# The template used from /components/_previews
#
# Per-variant options
# variants:
# - name: default
# label: Default
# hidden: true
# context:
# isExample: true # if this only demonstrates usage
# children_are_possible:
# variant_title: A Easy Card Title 1
# variant_href: "JavaScript:Void(0);"
# modifier: vf-card--very-easy
# variant_image: ../../assets/vf-card/assets/vf-card-example.png
# Global component context
context:
component-type: <%= componentType %>
exampleMultiColumns: "true" # shows component previews in a smaller layout space (must be wrapped in "quotes")
# custom-values: passed as {{custom-values}}
# - note: you in your custom-values you should use dashes `-`
# and not underscores `_` as underscores prevent inherited template use
# title: Title text
# text: String of text
# image: ../../assets/vf-component-name/assets/vf-component-name.png
# - note on paths: be sure to prefix with `../../`
# - Why? https://github.com/visual-framework/vf-core/issues/364