UNPKG

@accelint/design-toolkit

Version:

An open-source component library to serve as part of the entire ecosystem of UX for Accelint.

4 lines (3 loc) 515 B
'use client'; import {jsx}from'react/jsx-runtime';import'client-only';import {useEmit}from'@accelint/bus/react';import {isUUID}from'@accelint/core';import {Pressable}from'react-aria-components';import {SidenavEventTypes}from'./events.js';function u({children:r,for:e,...i}){const[o,t]=isUUID(e)?["toggle",e]:e.split(":"),n=useEmit(SidenavEventTypes[o]);return jsx(Pressable,{...i,onPress:()=>n({id:t}),children:r})}export{u as SidenavTrigger};//# sourceMappingURL=trigger.js.map //# sourceMappingURL=trigger.js.map