mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-13 01:24:36 +02:00
Add CSS code for input patterns
This commit is contained in:
@@ -26,7 +26,19 @@ const Details: React.FC<{}> = () => {
|
||||
</div>
|
||||
<BrowserFrame
|
||||
html={`
|
||||
<div style="
|
||||
<div class="chip">
|
||||
<!-- Content -->
|
||||
<div class="chip__content">
|
||||
...
|
||||
</div>
|
||||
|
||||
<!-- The close button -->
|
||||
<!-- See https://csslayout.io/patterns/close-button -->
|
||||
...
|
||||
</div>
|
||||
`}
|
||||
css={`
|
||||
.chip {
|
||||
/* Center the content */
|
||||
align-items: center;
|
||||
display: inline-flex;
|
||||
@@ -40,18 +52,12 @@ html={`
|
||||
|
||||
/* Spacing */
|
||||
padding: 4px 8px;
|
||||
">
|
||||
<!-- Content -->
|
||||
<div style="margin-right: 4px;">
|
||||
...
|
||||
</div>
|
||||
}
|
||||
|
||||
<!-- The close button -->
|
||||
<!-- See https://csslayout.io/patterns/close-button -->
|
||||
...
|
||||
</div>
|
||||
.chip__content {
|
||||
margin-right: 4px;
|
||||
}
|
||||
`}
|
||||
css={``}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
|
Reference in New Issue
Block a user