mirror of
https://github.com/django-components/django-components.git
synced 2025-08-30 18:57:20 +00:00
refactor: deprecate Component.input and add raw_args, raw_kwargs, raw_slots (#1233)
* refactor: deprecate Component.input and add raw_args, raw_kwargs, raw_slots * docs: update changelog
This commit is contained in:
parent
eceebb9696
commit
04f79a6e6b
15 changed files with 295 additions and 101 deletions
|
@ -2115,7 +2115,7 @@ class HeroIcon(Component):
|
|||
viewbox: Optional[str] = None,
|
||||
attrs: Optional[Dict] = None,
|
||||
) -> Dict:
|
||||
kwargs = IconDefaults(**self.input.kwargs)
|
||||
kwargs = IconDefaults(**self.kwargs)
|
||||
|
||||
if kwargs.variant not in ["outline", "solid"]:
|
||||
raise ValueError(f"Invalid variant: {kwargs.variant}. Must be either 'outline' or 'solid'")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue