@styleless-ui/react
Version:
Completely unstyled, headless and accessible React UI components.
1 lines • 1.04 kB
JavaScript
var t=this&&this.__assign||function(){return t=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t},t.apply(this,arguments)},r=this&&this.__rest||function(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(e[o[n]]=t[o[n]])}return e};import{jsx as e}from"react/jsx-runtime";import o from"../../Button";import{componentWithForwardedRef as n,useDeterministicId as s}from"../../utils";import{ActionRoot as a}from"../slots";var i=n((function(n,i){var l=n.className,c=n.children,p=n.id,f=n.as,u=void 0===f?o:f,m=r(n,["className","children","id","as"]),y=s(p,"styleless-ui__snackbar-action");return e(u,t({},m,{id:y,ref:i,className:l,type:"button","data-slot":a},{children:c}))}));export default i;