Line Item Card

Renders a line_item_card component

Queen room with balcony (single)

Relax in comfort with a king-size bed and a convenient pullout sofa—perfect for extra guests or family stays.

Attribute Type Documentation Default Value
Required id * :string
surface :string "grey"
Required title * :string
Required description * :string
class :any

Additional classes to add to the parent.

[]
errors :list

Errors to display below the card.

[]
on_close %JS{} %Phoenix.LiveView.JS{ops: []}
rest :global
Required inner_block * :slot
<.input
  type="text"
  name="quantity"
  value=""
  label="Quantity"
  show_error_messages={false}
  required={true}
/>
<.input
  type="money"
  name="price_per_unit"
  value=""
  label="Price per unit"
  show_error_messages={false}
  required={true}
/>