our friendly logo that looks like a hashbrown character from an animated tv showhashbrown

@hashbrownai/reactexposeComponent

Creates an object used to expose a component for use by the LLM.

function exposeComponent<T extends ComponentType<any>>(
component: T, 
config: ɵtypes.Prettify<Omit<ExposedComponent<T>, 'component'>>): ExposedComponent<T>;
@paramcomponent
T
@paramconfig
ɵtypes.Prettify<Omit<ExposedComponent<T>, 'component'>>
@typeT
ComponentType<any>
@returns
{ExposedComponent} - An object representing the component in order to expose it to the LLM.
ExposedComponent<T>

Examples

exposeComponent(
  CardComponent, // The React component to be exposed.
  { // The exposed component configuration.
    name: 'CardComponent',
    description: 'Show a card with children components to the user',
    children: 'any',
    props: {
      title: s.string('The title of the card'),
      description: s.streaming.string('The description of the card'),
    },
  },
});

LiveLoveApp provides secure, compliant, and reliable long-term support to enterprises. We are a group of engineers who are passionate about open source.

Enterprise Support

AI Engineering Sprint

Get your team up-to-speed on AI engineering with a one week AI engineering sprint. Includes a workshop on AI engineering with hashbrown and a few days with the hashbrown developer team to bring your AI ideas to life.

Long Term Support

Keep your hashbrown deployments running at peak performance with our Long Term Support. Includes an ongoing support retainer for direct access to the hashbrown developer team, SLA-backed issue resolution, and guided upgrades.

Consulting

LiveLoveApp provides hands-on engagement with our AI engineers for architecture reviews, custom integrations, proof-of-concept builds, performance tuning, and expert guidance on best practices.