-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Form Toggle Component #2
base: main
Are you sure you want to change the base?
Conversation
focus?: string | ||
} | ||
export type FormToggleThemes = FormToggleTheme[] | ||
export type FormToggleThemeName = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulled in colors from tailwind
</script> | ||
|
||
<template> | ||
<!-- Default --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basic example
<template #icon-on> | ||
<div class="flex items-center rounded"> | ||
<span class="w-3 h-3"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example with icon slot
@@ -14,6 +16,12 @@ declare const PushButton: DefineComponent<{ | |||
customTheme: PropType<PushButtonTheme> | |||
}> | |||
|
|||
declare const FormToggle: DefineComponent<{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk if this is right just coped from push button
Added color themes based on tailwinds color pallet
![Peek 2022-01-24 23-25](https://user-images.githubusercontent.com/25044744/150910784-2f325626-a439-42bf-a334-c49f17d6cf66.gif)