generated from pixel-perfect-agency/next-foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
836198f
commit 487df3e
Showing
3 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use client'; | ||
|
||
import useSettings from '~/hooks/useSettings'; | ||
|
||
const PreviewText = () => { | ||
const { watch } = useSettings(); | ||
|
||
return ( | ||
<div | ||
className="h-20 rounded-lg border border-dashed border-neutral-400 bg-neutral-200 px-2 py-1" | ||
style={{ margin: `0 ${watch('clamp').replace('vw', '%')}` }}> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor | ||
</div> | ||
); | ||
}; | ||
|
||
export default PreviewText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters