From e9947a573a19bd823a97dc07e801e54a49256bc3 Mon Sep 17 00:00:00 2001 From: Tonksthebear Date: Thu, 11 Nov 2021 13:39:23 -0800 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bad640d..e930608 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ btn: Now, calling `yass(btn: :blue)` or `yass(btn: :yellow)` will ALSO pull in the classes from `btn: :base`. -# ViewComponent +### ViewComponent There is a special helper built for ViewComponent and sidecar assets. In your `example_component.rb`, add the line `include Classy::Yaml::ComponentHelpers`. This helper will tell `yass` to check if there is a `example_component.yml` file, and first use that for definitions. If the definitions aren't found in the `example_component.yml`, then it will fallback to `config/utility_classes.yml`. So, it may look like this