Add Partials (#1824)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { Partial } from "$fresh/runtime.ts";
|
||||
|
||||
export default function SlotDemo() {
|
||||
return (
|
||||
<div>
|
||||
<form fh-partial="/form/update">
|
||||
<Partial name="slot-1">
|
||||
<p class="status">Default content</p>
|
||||
<p>
|
||||
<input type="text" value="foo" />
|
||||
</p>
|
||||
</Partial>
|
||||
<button type="submit" class="submit">
|
||||
submit
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user