-
I'm trying to build a new component library using React and Storybook. Instead of loading in the static files, i'm trying to let all of the bundling under the hood do its thing. I have the SCSS being loaded in properly, just trying to get the JavaScript to work. I've followed these steps when using USWDS 2.0, but I'm thinking they are no longer accurate: https://designsystem.digital.gov/documentation/developers/#js-customization. Specifically the part where I'm importing Accordion module and trying to use a hook to call the .on method to enable the accordion for toggling. TIA! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Nm, figured it out. Had to do the import like this: |
Beta Was this translation helpful? Give feedback.
Nm, figured it out. Had to do the import like this:
import { accordion } from '@uswds/uswds/src/js/components';