Buttons, Variants, and the as-child Prop with ShadCN Vue
In this lesson, let’s take a closer look at the button component. In the process, learn about the common variant
prop for changing the look (style, color, etc) of many components. Many trigger-type components also accept an as-child
prop so you can render your own element while keeping all behavior, accessibility, and style of the original component.
Links