Skip to content

Commit 49402f6

Browse files
authored
docs(text-align): modify the TextAlign 'defaultAlignment' option's default (#6061)
1 parent 4d9cc05 commit 49402f6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/yellow-hairs-search.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tiptap/extension-text-align": patch
3+
---
4+
5+
Modify the documentation of the default value of defaultAlignment so that it matches the code

packages/extension-text-align/src/text-align.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface TextAlignOptions {
1717

1818
/**
1919
* The default alignment.
20-
* @default 'left'
20+
* @default null
2121
* @example 'center'
2222
*/
2323
defaultAlignment: string | null,

0 commit comments

Comments
 (0)