| ... | ... | @@ -101,7 +101,7 @@ function Button({ className, variant, size, render, ...props }: ButtonProps) { |
| 101 | 101 | export { Button, buttonVariants, type ButtonSize, type ButtonVariant }; |
| 102 | 102 | |
| 103 | 103 | const inlineButtonVariants = cva( |
| 104 | | "inline-flex shrink-0 cursor-pointer items-center gap-0.5 whitespace-nowrap font-medium underline-offset-2 hover:underline focus-visible:outline-2 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-64", |
| 104 | "inline-flex shrink-0 cursor-pointer items-center gap-0.5 font-medium underline-offset-2 [text-align:var(--inline-button-text-align,center)] [white-space:var(--inline-button-white-space,nowrap)] hover:underline focus-visible:outline-2 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-64", |
| 105 | 105 | { |
| 106 | 106 | defaultVariants: { tone: "default" }, |
| 107 | 107 | variants: { |
| ... | ... | @@ -117,7 +117,7 @@ const inlineButtonVariants = cva( |
| 117 | 117 | }, |
| 118 | 118 | ); |
| 119 | 119 | |
| 120 | | /** An inline text action that keeps the size of the surrounding text and underlines on hover. */ |
| 120 | /** An inline text action. Set --inline-button-white-space to normal in wrapping prose containers. */ |
| 121 | 121 | export function InlineButton({ |
| 122 | 122 | className, |
| 123 | 123 | tone, |