Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
create-style-context.d.ts1.9 kB
/* eslint-disable */ import type { SlotRecipeRuntimeFn, RecipeVariantProps } from '../types/recipe'; import type { JsxHTMLProps, JsxStyleProps, Assign } from '../types/system-types'; import type { JsxFactoryOptions, ComponentProps } from '../types/jsx'; import type { ComponentType, ElementType } from 'react' interface UnstyledProps { unstyled?: boolean | undefined } type SvaFn<S extends string = any> = SlotRecipeRuntimeFn<S, any> interface SlotRecipeFn { __type: any __slot: string (props?: any): any } type SlotRecipe = SvaFn | SlotRecipeFn type InferSlot<R extends SlotRecipe> = R extends SlotRecipeFn ? R['__slot'] : R extends SvaFn<infer S> ? S : never interface WithProviderOptions<P = {}> { defaultProps?: Partial<P> | undefined } type StyleContextProvider<T extends ElementType, R extends SlotRecipe> = ComponentType< JsxHTMLProps<ComponentProps<T> & UnstyledProps, Assign<RecipeVariantProps<R>, JsxStyleProps>> > type StyleContextRootProvider<T extends ElementType, R extends SlotRecipe> = ComponentType< ComponentProps<T> & UnstyledProps & RecipeVariantProps<R> > type StyleContextConsumer<T extends ElementType> = ComponentType< JsxHTMLProps<ComponentProps<T> & UnstyledProps, JsxStyleProps> > export interface StyleContext<R extends SlotRecipe> { withRootProvider: <T extends ElementType>( Component: T, options?: WithProviderOptions<ComponentProps<T>> | undefined ) => StyleContextRootProvider<T, R> withProvider: <T extends ElementType>( Component: T, slot: InferSlot<R>, options?: JsxFactoryOptions<ComponentProps<T>> | undefined ) => StyleContextProvider<T, R> withContext: <T extends ElementType>( Component: T, slot: InferSlot<R>, options?: JsxFactoryOptions<ComponentProps<T>> | undefined ) => StyleContextConsumer<T> } export declare function createStyleContext<R extends SlotRecipe>(recipe: R): StyleContext<R>

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