The container element or CSS selector where the terminal will be mounted. Can be an HTMLElement or a CSS selector string (e.g., '#terminal', '.container').
OptionalcontinuationThe continuation prompt displayed for multi-line SQL statements.
OptionaldatabaseThe database file path when using OPFS storage. Only used when storage is 'opfs'.
OptionalfontFont family for the terminal text.
OptionalfontFont size in pixels.
OptionallinkWhether to automatically detect and make URLs clickable in output.
OptionalpromptThe primary prompt string displayed before each command.
OptionalscrollbackScrollback buffer size in bytes. Larger values allow more history but use more memory.
OptionalstorageThe storage backend for the database.
OptionalthemeThe color theme for the terminal. Can be 'dark', 'light', or a custom Theme object.
OptionalwelcomeWhether to display the welcome message on startup.
Configuration options for creating a DuckDB terminal.
Example: Minimal configuration
Example: Full configuration