From 9d1bafe70c674f5a29dc3ef9f3b99ede89e1b4ca Mon Sep 17 00:00:00 2001 From: upsiflu Date: Mon, 23 Dec 2024 00:30:09 +0100 Subject: [PATCH] feat(ui): add title prop to toggle --- front/src/components/ui/Layout.vue | 4 +- front/src/components/ui/Toggle.vue | 89 +++++++++++++++++++++++---- front/src/style/colors.scss | 10 +++ front/ui-docs/components/ui/toggle.md | 21 ++++++- 4 files changed, 108 insertions(+), 16 deletions(-) diff --git a/front/src/components/ui/Layout.vue b/front/src/components/ui/Layout.vue index c19c571fb..1705b9768 100644 --- a/front/src/components/ui/Layout.vue +++ b/front/src/components/ui/Layout.vue @@ -6,13 +6,13 @@ const props = defineProps<{ noWrap?:true } & { [P in "stack" | "grid" | "flex" | "columns"]?: true | string } - & { [C in "nav" | "aside" | "header" | "footer" | "main" | "h1" | "h2" | "h3" | "h4" | "h5"]?:true }>() + & { [C in "nav" | "aside" | "header" | "footer" | "main" | "label" | "h1" | "h2" | "h3" | "h4" | "h5"]?:true }>() const columnWidth = props.columnWidth ?? 46