@scrolia/vanilla
Version:
A headless scrollbar component
1 lines • 612 B
Source Map (JSON)
{"version":3,"file":"attribute.mjs","names":["attributes: NamedNodeMap","props: Record<string, string>"],"sources":["../../src/functions/attribute.ts"],"sourcesContent":["const getPropsFromAttributes = (\n attributes: NamedNodeMap,\n): Record<string, string> => {\n const props: Record<string, string> = {};\n\n for (const attribute of attributes) {\n props[attribute.name] = attribute.value;\n }\n\n return props;\n};\n\nexport { getPropsFromAttributes };\n"],"mappings":"AAAA,MAAM,yBAAyB,CAC3BA,eACyB;CACzB,MAAMC,QAAgC,CAAE;AAExC,MAAK,MAAM,aAAa,WACpB,OAAM,UAAU,QAAQ,UAAU;AAGtC,QAAO;AACV"}