From 15f0e03c43ed4e59d77bb79cd0669a868d05e513 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sun, 25 Feb 2024 14:08:16 -0800 Subject: [PATCH] docs(button): add description to "Custom element" --- docs/src/pages/components/Button.svx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/pages/components/Button.svx b/docs/src/pages/components/Button.svx index 6368abea..953d1e0c 100644 --- a/docs/src/pages/components/Button.svx +++ b/docs/src/pages/components/Button.svx @@ -88,6 +88,10 @@ If an `href` value is specified, the component will render an [anchor element](h ## Custom element +By default, the `Button` will render either a `button` or `a` element. + +If you need to render a different element, set `as` to `true` and spread `let:props` to the element. +