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
feat(VSwitch, VSwitchBtn, VSwitchTrack) #19529
base: dev
Are you sure you want to change the base?
Conversation
Split VSwitch component into three smaller components
.gitignore
Outdated
@@ -23,3 +23,6 @@ cypress/videos | |||
|
|||
.vercel | |||
.now | |||
|
|||
# ignore yarn build files |
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.
is this needed for the PR?
import type { GenericProps } from '@/util' | ||
|
||
export type VSwitchTrackSlot = { | ||
model: Ref<boolean> |
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.
My intent for switch track was to clean-up the component. I don't think that it needs to have model support itself.
@@ -1 +1,3 @@ | |||
export { VSwitch } from './VSwitch' | |||
export { VSwitchBtn } from './VSwitchBtn' | |||
export { VSwitchTrack } from './VSwitchTrack' |
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.
This doesn't need to be public
# Conflicts: # packages/vuetify/src/components/VSwitch/VSwitch.sass
Motivation and Context
Split VSwitch component into VSwitch, VSwitchBtn and VSwitchTrack, to make it easier to have a compact inline switch component
Markup: