-
Notifications
You must be signed in to change notification settings - Fork 41
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
374581a
commit bb5129b
Showing
7 changed files
with
95 additions
and
33 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
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 |
---|---|---|
@@ -1,25 +1,36 @@ | ||
.thaw-card-header { | ||
display: grid; | ||
grid-auto-columns: min-content 1fr min-content; | ||
display: flex; | ||
align-items: center; | ||
|
||
--thaw-card-header--gap: 12px; | ||
} | ||
|
||
.thaw-card-header__header { | ||
flex-grow: 1; | ||
display: flex; | ||
} | ||
|
||
.thaw-card-header__action { | ||
margin-left: var(--thaw-card-header--gap); | ||
} | ||
|
||
.thaw-card-header--description { | ||
display: grid; | ||
grid-auto-columns: min-content 1fr min-content; | ||
} | ||
|
||
.thaw-card-header--description .thaw-card-header__header { | ||
grid-row-start: 1; | ||
grid-column-start: 2; | ||
display: flex; | ||
} | ||
|
||
.thaw-card-header__description { | ||
.thaw-card-header__description { | ||
grid-row-start: 2; | ||
grid-column-start: 2; | ||
display: flex; | ||
} | ||
|
||
.thaw-card-header__action { | ||
.thaw-card-header--description .thaw-card-header__action { | ||
grid-column-start: 3; | ||
grid-row-start: span 2; | ||
display: flex; | ||
margin-left: var(--thaw-card-header--gap); | ||
} | ||
} |
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,61 @@ | ||
# CardHeader | ||
|
||
```rust demo | ||
view!{ | ||
<Flex vertical=true> | ||
<CardHeader> | ||
<Body1> | ||
<b>"App Name"</b> | ||
</Body1> | ||
<CardHeaderDescription slot> | ||
<Caption1>"Developer"</Caption1> | ||
</CardHeaderDescription> | ||
<CardHeaderAction slot> | ||
<Button appearance=ButtonAppearance::Transparent icon=icondata::AiMoreOutlined /> | ||
</CardHeaderAction> | ||
</CardHeader> | ||
<CardHeader> | ||
<Body1> | ||
<b>"App Name"</b> | ||
</Body1> | ||
<CardHeaderAction slot> | ||
<Button appearance=ButtonAppearance::Transparent icon=icondata::AiMoreOutlined /> | ||
</CardHeaderAction> | ||
</CardHeader> | ||
<CardHeader> | ||
<Body1> | ||
<b>"App Name"</b> | ||
</Body1> | ||
<CardHeaderDescription slot> | ||
<Caption1>"Developer"</Caption1> | ||
</CardHeaderDescription> | ||
</CardHeader> | ||
<CardHeader> | ||
<Body1> | ||
<b>"App Name"</b> | ||
</Body1> | ||
</CardHeader> | ||
</Flex> | ||
} | ||
``` | ||
|
||
### CardHeader Props | ||
|
||
| Name | Type | Default | Description | | ||
| ----------------------- | ------------------------------------ | -------------------- | ----------- | | ||
| class | `MaybeProp<String>` | `Default::default()` | | | ||
| card_header_description | slot `Option<CardHeaderDescription>` | `None` | | | ||
| card_header_action | slot `Option<CardHeaderAction>` | `None` | | | ||
| children | `Children` | | | | ||
|
||
### CardHeaderDescription Props | ||
|
||
| Name | Type | Default | Description | | ||
| -------- | ---------- | ------- | ----------- | | ||
| children | `Children` | | | | ||
|
||
### CardHeaderAction Props | ||
|
||
| Name | Type | Default | Description | | ||
| -------- | ---------- | ------- | ----------- | | ||
| children | `Children` | | | |
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