UNPKG

@dark-engine/platform-desktop

Version:

Dark renderer to desktop platforms like Windows, Linux, macOS via Nodegui and Qt

15 lines (14 loc) 443 B
import { QLabel } from '@nodegui/nodegui'; import { component, detectIsArray } from '@dark-engine/core'; import { qText } from '../factory'; const Text = component( props => { const { slot, ...rest } = props; const text = detectIsArray(slot) ? slot.join('') : slot; return qText({ text, ...rest }); }, { displayName: 'Text' }, ); class QDarkText extends QLabel {} export { Text, QDarkText }; //# sourceMappingURL=text.js.map