Baptiste
Baptiste
Explore posts from servers
SSolidJS
Created by Baptiste on 1/12/2024 in #support
Autofill input does not trigger the `onInput` callback
I'm having a hard time understanding it. Probably related to https://github.com/solidjs/solid/discussions/416 ?
6 replies
SSolidJS
Created by Baptiste on 1/11/2023 in #support
Register custom component props without default values
Currently, I need to give default values to component properties if I want them to be registered:
customElement(
'typebot-standard',
{
apiHost: '',
isPreview: false,
resultId: '',
startGroupId: '',
prefilledVariables: {},
typebotId: '',
},
Bot
)
customElement(
'typebot-standard',
{
apiHost: '',
isPreview: false,
resultId: '',
startGroupId: '',
prefilledVariables: {},
typebotId: '',
},
Bot
)
But that's really not convenient. Is there a way to register props without default values?
3 replies
SSolidJS
Created by Baptiste on 12/22/2022 in #support
Importing web component `[...] does not exist on type 'JSX.IntrinsicElements'`
I'm trying to insert a web component in my Solid component:
import '@power-elements/stripe-elements'

declare global {
namespace JSX {
interface IntrinsicElements {
'stripe-payment-request': any
}
}
}

const App = (props) => <div>
<stripe-payment-request
publishable-key={props.options.publicKey}
client-secret={props.options.paymentIntentSecret}
generate="source"
amount="125"
label="Double Double"
country="CA"
currency={props.options.currency}
/>
</div>
import '@power-elements/stripe-elements'

declare global {
namespace JSX {
interface IntrinsicElements {
'stripe-payment-request': any
}
}
}

const App = (props) => <div>
<stripe-payment-request
publishable-key={props.options.publicKey}
client-secret={props.options.paymentIntentSecret}
generate="source"
amount="125"
label="Double Double"
country="CA"
currency={props.options.currency}
/>
</div>
But it says Property 'stripe-payment-request' does not exist on type 'JSX.IntrinsicElements'.. Any idea how to fix this?
4 replies
SSolidJS
Created by Baptiste on 12/8/2022 in #support
Export an IIFE build with esbuild not working as expected
Is there any guide on how to export an IIFE build? I tried setting up esbuild to do that but it doesn't work as expect (cf video)
2 replies