Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
switch-recipe.mjs1.37 kB
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs'; import { createRecipe } from './create-recipe.mjs'; const switchRecipeDefaultVariants = { "size": "md" } const switchRecipeCompoundVariants = [] const switchRecipeSlotNames = [ [ "root", "switchRecipe__root" ], [ "label", "switchRecipe__label" ], [ "control", "switchRecipe__control" ], [ "thumb", "switchRecipe__thumb" ] ] const switchRecipeSlotFns = /* @__PURE__ */ switchRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, switchRecipeDefaultVariants, getSlotCompoundVariant(switchRecipeCompoundVariants, slotName))]) const switchRecipeFn = memo((props = {}) => { return Object.fromEntries(switchRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)])) }) const switchRecipeVariantKeys = [ "size" ] const getVariantProps = (variants) => ({ ...switchRecipeDefaultVariants, ...compact(variants) }) export const switchRecipe = /* @__PURE__ */ Object.assign(switchRecipeFn, { __recipe__: false, __name__: 'switchRecipe', raw: (props) => props, classNameMap: {}, variantKeys: switchRecipeVariantKeys, variantMap: { "size": [ "sm", "md", "lg" ] }, splitVariantProps(props) { return splitProps(props, switchRecipeVariantKeys) }, getVariantProps })

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server