Skip to content

Commit

Permalink
Add skip link properties to story
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Sep 22, 2023
1 parent 87384ad commit 4f74aa1
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import SkipLink from "./template.njk";
import macroOptions from "./macro-options.json";

const argTypes = {
text: { control: "text" },
href: { control: "text" },
classes: { control: "text" },
attributes: { control: "object" },
};
Expand All @@ -17,13 +19,10 @@ export default {
argTypes,
};

const Template = ({ classes, attributes }) =>
const Template = ({ text, href, classes, attributes }) =>
`<p>To view the skip link component tab to this example, or click inside this example and press tab.</p>
${SkipLink({
params: {
classes,
attributes,
},
params: { text, href, classes, attributes },
})}`;

export const Standard = Template.bind({});
Expand Down

0 comments on commit 4f74aa1

Please sign in to comment.