import { SvelteComponent } from 'svelte' import type { BladeRef } from '../core/Blade.svelte' declare const __propDef: { props: Omit< { /** * Blade configuration exposing Tweakpane's internal * [`BladeParams`](https://tweakpane.github.io/docs/api/interfaces/BaseBladeParams.html). */ options: import('tweakpane').BaseBladeParams /** * Prevent interactivity and gray out the control. * * @default `false` */ disabled?: boolean /** * Custom color scheme. * * If undefined, inherits default Tweakpane theme equivalent to * `ThemeUtils.presets.standard`, or the theme set with * `setGlobalDefaultTheme()`. * * @default `undefined` */ theme?: import('..').Theme | undefined /** * Reference to internal Tweakpane * [`BladeApi`](https://tweakpane.github.io/docs/api/classes/BladeApi.html) * for this blade. * * This property is exposed for advanced use cases only, such as when * implementing convenience components wrapping ``'s functionality. * * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane * UI_ abstractions. * * @bindable * @readonly */ ref?: BladeRef | undefined /** * Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to * automatically register in the ``'s containing ``. * * This property is exposed for advanced use cases only, such as when * implementing convenience components wrapping ``'s functionality in * combination with a Tweakpane plugin. * * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane * UI_ abstractions. * * @default `undefined` */ plugin?: import('../core/Blade.svelte').Plugin | undefined }, 'ref' | 'disabled' | 'options' | 'plugin' > & { /** * Maximum height of the element block, in pixels. By default, the element * block will expand vertically to fit its contents, but clip any horizontal * excess. * * If a max height is set, it is used as the component height during SSR. If * the actual element content is less than the max, you will see CLS. If it * is not set, the contents are rendered... but keep in mind that style and * other contextual changes during the client render could result in CLS. * * If undefined, no max height is specified. * * @default `undefined` */ maxHeight?: number /** * Whether to reset the CSS of the element block to its default values. * Avoids inheritance of Tweakpane's CSS styles. Note that this uses a * simple `all: initial;` rule. * * @default `true` */ resetStyle?: boolean } events: { [evt: string]: CustomEvent } slots: { /** * Any HTML Element. */ default: {} } exports?: {} | undefined bindings?: string | undefined } export type ElementProps = typeof __propDef.props export type ElementEvents = typeof __propDef.events export type ElementSlots = typeof __propDef.slots /** * A component for embedding arbitrary HTML elements into a pane. * * Any children wrapped in this component will be rendered into the pane. Any * content larger than the pane in the horizontal axis will be clipped. * * Useful for quickly prototyping UIs, or adding content to a pane that's not * easily represented by the built-in components. * * This component does not have a direct analog in the vanilla Tweakpane universe. * * Think of `` as an escape hatch for getting something into the pane that * you couldn't otherwise. Generally, it's recommended to abstract new * functionality for reuse by extending one of the internal component types in * Svelte Tweakpane UI, or better yet by creating a new [Tweakpane * Plugin](https://github.com/tweakpane/plugin-template) — but sometimes you just * need to get something into the pane quickly. * * In many cases, this component should not be necessary because _Svelte Tweakpane * UI_ already makes it easy to combine tweakpane components with other inline * elements simply by using stand-alone components or a `` * component. `` should generally be the most useful when you're using * `` or `` and you want a custom * element embedded in the pane. * * Usage outside of a `` component doesn't make a ton of sense, but in such a * case the `` will be implicitly wrapped in ``. * * @example * ```svelte * * * * `${(Math.abs(v) % 360).toFixed(0)}°`} * label="Gradient Angle" * pointerScale={-5} * /> * `${(Math.abs(v) % 360).toFixed(0)}°`} * label="Text Angle" * pointerScale={-2} * /> * *
*

* <Pane>
* <Element>
* Whatever you want.
* </Element>
* </Pane> *

*
*
*