Skip to content

Instantly share code, notes, and snippets.

@jacksleight
Created February 22, 2023 09:40
Show Gist options
  • Save jacksleight/6729384238ba3b9eb0ee24388b82f2d9 to your computer and use it in GitHub Desktop.
Save jacksleight/6729384238ba3b9eb0ee24388b82f2d9 to your computer and use it in GitHub Desktop.
Statamic Divider Fieldtype
.divider-fieldtype {
border-top: 1px solid #dde3e9;
padding: 0 !important;
.publish-field-label {
display: none;
}
}
<?php
namespace App\Fieldtypes;
use Statamic\Fields\Fieldtype;
class Divider extends Fieldtype
{
}
<template>
<div></div>
</template>
<script>
export default {
mixins: [Fieldtype],
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment