How to use 'textdecoration' in JavaScript

Every line of 'textdecoration' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
1function _textDecoration(decoration, index, color) {
2 return ({
3 type: 'text',
4 text: decoration,
5 css: [{
6 top: `${startTop + index * gapSize}rpx`,
7 color: color,
8 textDecoration: decoration,
9 }, common],
10 });
11}
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

1export default function textDecoration(_name, value) {
2 return {
3 textDecorationLine: value
4 };
5}

Related snippets