Use the `CodeLine` data class to specify content and a prefix for each line.
npm i daisyuiProvide a list of `CodeLine` objects for multiple lines with different styles.
npm i daisyui
installing...
Done!
Apply background and text color utilities to a specific `CodeLine` to highlight it.
npm i daisyui
installing...
Error!
The component handles horizontal scrolling for long lines automatically.
Magnam dolore beatae necessitatibus nemopsum itaque sit. Et porro quae qui et et dolore ratione.
For simple cases, use the `MockupCode.fromString()` factory for a cleaner API.
without prefixApply background and text color utilities to the main `MockupCode` component.
can be any color!Use the `MockupCode.fromString()` factory for the easiest implementation. Pass a multi-line string and set `showLineNumbers: true` to automatically prefix each line.
void main() {
print('Hello, Deepyr!');
}
Use the `MockupCode.fromList()` factory when your code is already represented as a list of strings. This is useful when processing code dynamically.
git clone https://github.com/PhilippHGerber/ui_components
cd ui_components/examples/deepyr_example
npm install
jaspr serve