Skip to content

Commit

Permalink
Created "dataDisplay" tag & added the "command" example (#55)
Browse files Browse the repository at this point in the history
* Created "dataDisplay" tag & added the "command" example

* make more concise using join, and move to input tag

---------

Co-authored-by: Willian Pinheiro <willpinhaaa@gmail.com>
  • Loading branch information
StrawHatHacker and willpinha authored Jan 18, 2024
1 parent 2ca22db commit 1ecfee4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions src/examples/input/command.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div class="join rounded-lg border border-[oklch(var(--bc)/.2)] divide-x divide-[oklch(var(--bc)/.2)]">
<!-- Command icon -->
<div class="join-item py-3 px-4">
<i class="fa fa-terminal text-lg text-info" aria-hidden="true"></i>
</div>

<!-- Command text -->
<div class="join-item p-3 pr-20">
npm install daisyui
</div>

<!-- Copy button -->
<div class="join-item tooltip tooltip-right" data-tip="Copy">
<button class="btn btn-ghost join-item">
<i class="fa-solid fa-copy text-lg text-info" aria-hidden="true"></i>
</button>
</div>
</div>
2 changes: 1 addition & 1 deletion src/examples/input/textInputWithClearIcon.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="join">
<div class="join rounded-lg">
<input class="join-item input input-bordered border-r-0">

<div class="tooltip tooltip-right" data-tip="Clear">
Expand Down

0 comments on commit 1ecfee4

Please sign in to comment.