diff --git a/component-catalog/src/Examples/Switch.elm b/component-catalog/src/Examples/Switch.elm index 24dd25b5f..bc79ecfaf 100644 --- a/component-catalog/src/Examples/Switch.elm +++ b/component-catalog/src/Examples/Switch.elm @@ -80,7 +80,7 @@ example = , code = Code.fromModule moduleName "view" ++ Code.recordMultiline - [ ( "label", Code.string label ) + [ ( "label", Code.apply [ Code.fromModule "Html" "text", Code.string label ] ) , ( "id", Code.string "view-switch-example" ) ] 1