<script>
  export let value
</script>

<div>{value}</div>

<style>
  div {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 150px;
  }
</style>
