-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Center | ||
|
||
Center is a layout component that centers its child within itself. | ||
<ComponentDescription name="center" /> | ||
|
||
![Center example](public/assets/overview-center.webp) | ||
<Preview name="center" /> | ||
|
||
## Optional props | ||
|
||
<PropsDocs name="center" /> |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Clickable | ||
|
||
Represents clickable surfaces. | ||
<ComponentDescription name="clickable" /> | ||
|
||
![Clickable example](public/assets/overview-clickable.webp) | ||
```jsx | ||
<Clickable> | ||
Text <button>Click Me</button> | ||
</Clickable> | ||
``` | ||
|
||
## Optional props | ||
|
||
<PropsDocs name="clickable" /> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{ "api-reference": "API Reference", "clickable-bubble": "ClickableBubble" } | ||
{ "clickable-bubble": "ClickableBubble" } |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
# ClickableBubble | ||
|
||
Bubbles events to Clickable. | ||
<ComponentDescription name="clickable-bubble" /> | ||
|
||
![No-visual component](public/assets/no-visual-component.webp) | ||
```jsx | ||
<Clickable> | ||
<ClickableBubble> | ||
<p>Clicking the text will bubble the Click event to Clickable</p> | ||
</ClickableBubble> | ||
</Clickable> | ||
``` | ||
|
||
## Required props | ||
|
||
<PropsDocs name="clickable-bubble" required /> |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"combobox-input": "ComboboxInput", | ||
"combobox-item": "ComboboxItem", | ||
"combobox-list": "ComboboxList", | ||
"combobox-popover": "ComboboxPopover" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ComboboxInput | ||
|
||
<ComponentDescription name="combobox-input" /> | ||
|
||
## Optional props | ||
|
||
<PropsDocs name="combobox-input" /> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ComboboxItem | ||
|
||
<ComponentDescription name="combobox-item" /> | ||
|
||
## Optional props | ||
|
||
<PropsDocs name="combobox-item" /> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ComboboxList | ||
|
||
<ComponentDescription name="combobox-list" /> | ||
|
||
## Optional props | ||
|
||
<PropsDocs name="combobox-list" /> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ComboboxPopover | ||
|
||
<ComponentDescription name="combobox-popover" /> | ||
|
||
## Optional props | ||
|
||
<PropsDocs name="combobox-popover" /> |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
# Compose | ||
|
||
Composes immediate child with its props and child own props. | ||
Used to implement Shoreline composition. | ||
<ComponentDescription name="compose" /> | ||
|
||
![Compose example](public/assets/overview-compose.webp) | ||
```jsx | ||
function Button({ asChild, ...props }) { | ||
const Composition = asChild ? Compose : "button"; | ||
return <Composition {...props} />; | ||
} | ||
``` | ||
|
||
## Optional props | ||
|
||
<PropsDocs name="compose" /> |
This file was deleted.