# स्ट्राइकथ्रू {#strikethrough}

Source: [React एडिटर में स्ट्राइकथ्रू जोड़ें · Yurich](https://leeyujoo.com/yurich/hi/features/strikethrough/)

Package: [`yurich`](https://www.npmjs.com/package/yurich)

Package version: `0.1.2`

टेक्स्ट को दिखाते हुए उस पर काटने की लाइन लगाएँ।

## आज़माएँ {#try-it}

“Yurich” चुनकर **काटें** दबाएँ। आउटपुट में `<s>Yurich</s>` आता है और टेक्स्ट बना रहता है।

## एडिटर में जोड़ें {#setup}

`Strikethrough` चालू करें और चयन पर `toggleStrikethrough` चलाएँ।

```tsx
import { EditorContent, EditorProvider, Strikethrough, useEditor, useIsActive } from 'yurich';

export function StrikethroughEditor() {
  const editor = useEditor({
    extensions: [Strikethrough],
    initialValue: "<p>Yurich को काटकर देखें कि क्या बचता है।</p>",
  });
  const active = useIsActive(editor, 'toggleStrikethrough');

  return (
    <EditorProvider editor={editor}>
      <button
        type="button"
        aria-pressed={active}
        onMouseDown={event => event.preventDefault()}
        onClick={() => editor.execute('toggleStrikethrough')}
      >
        काटें
      </button>
      <EditorContent ariaLabel="एडिटर" />
    </EditorProvider>
  );
}
```

## ध्यान देने योग्य व्यवहार {#behavior}

शॉर्टकट `Mod+Shift+S` है। इनपुट का `<del>` आउटपुट में `<s>` बनता है।

[सुविधाएँ](https://leeyujoo.com/yurich/hi/features/)
