@ryanhelsing/ry-ui
Version:
Framework-agnostic, Light DOM web components. CSS is the source of truth.
27 lines • 652 B
TypeScript
/**
* <ry-code>
*
* Code display component with syntax highlighting.
*
* Usage:
* <ry-code language="css" title="styles.css">
* .button {
* background: #3b82f6;
* border-radius: 8px;
* }
* </ry-code>
*
* Attributes:
* - language: css | js | html | json (for syntax highlighting)
* - title: optional title shown in header
* - line-numbers: show line numbers
*/
import { RyElement } from '../core/ry-element.js';
export declare class RyCode extends RyElement {
static get observedAttributes(): string[];
setup(): void;
get code(): string;
set code(value: string);
}
//# sourceMappingURL=ry-code.d.ts.map