= {
+ parameters: {
+ layout: "centered",
+ docs: {
+ controls: { exclude: ["spacing"] },
+ },
+ },
+ title: "Components/ButtonLink",
+
+ component: ButtonLink,
+ args: { onClick: fn() },
+};
+
+export default meta;
+
+export const Basic: Story = {
+ render: (args) => (
+
+ Anchor as a button
+ Anchor as a button lorem ipsum
+ Anchor as a button lorem ipsum dolor
+
+ Anchor as a button lorem ipsum dolor sit amet
+
+
+ ),
+};
+
+export const NewWindow: Story = {
+ args: { target: "_blank" },
+ render: (args) => (
+
+ Anchor as a button
+ Anchor as a button lorem ipsum
+ Anchor as a button lorem ipsum dolor
+
+ Anchor as a button lorem ipsum dolor sit amet
+
+
+ ),
+};
+
+export const Truncate: Story = {
+ args: { className: "w-44 sm:w-52" },
+ render: (args) => (
+ <>
+
+ Anchor as a button
+ Anchor as a button lorem ipsum
+ Anchor as a button lorem ipsum dolor
+
+ Anchor as a button lorem ipsum dolor sit amet
+
+
+
+
For text to truncate, you need to limit the width of the buttons.
+
This can be done by using Tailwind width classes, for example
+
className={args.className}
+
+ >
+ ),
+};