Skip to content

Commit

Permalink
feat(props): add class props property on side with className
Browse files Browse the repository at this point in the history
  • Loading branch information
flozero committed Sep 25, 2024
1 parent 0a05880 commit 28d12dd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions packages/documentation/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vitepress/cache
1 change: 0 additions & 1 deletion packages/documentation/pages/responsive-variants.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const buttonVariants = compose({
})();

// Usage in a React component
import { twMerge } from "tailwind-merge";

// class .font-bold will be applied as the condition is fulfilled.
export const Button: React.FC<{}> = () => {
Expand Down
1 change: 0 additions & 1 deletion packages/documentation/pages/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export const buttonVariants = compose({
export type ButtonProps = VariantsProps<typeof buttonVariants>;

// Usage in a React component
import { twMerge } from "tailwind-merge";

export const Button: React.FC<React.PropsWithChildren<ButtonProps>> = ({
as: Component = "button",
Expand Down

0 comments on commit 28d12dd

Please sign in to comment.