View Source Phoenix.UI.Components.Chip (Phoenix UI v0.1.9)
Provides chip component.
Link to this section Summary
Functions
Renders chip component.
Link to this section Functions
@spec chip(Phoenix.LiveView.Socket.assigns()) :: Phoenix.LiveView.Rendered.t()
Renders chip component.
examples
Examples
```
<.chip label="keto"/>
```
attributes
Attributes
avatar(:list)color(:string) - Defaults to"slate".delete_icon(:list)element(:string) - Defaults to"div".extend_class(:string)icon(:list)label(:string)size(:string) - Defaults to"md".variant(:string) - Defaults to"filled".- Global attributes are accepted.