Skip to content
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

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

tcampbPPU
Copy link
Member

Added color themes based on tailwinds color pallet
Peek 2022-01-24 23-25

focus?: string
}
export type FormToggleThemes = FormToggleTheme[]
export type FormToggleThemeName =
Copy link
Member Author

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 -->
Copy link
Member Author

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">
Copy link
Member Author

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<{
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant