Skip to content

Commit

Permalink
fix: types for prefixAttrs and suffixAttrs
Browse files Browse the repository at this point in the history
  • Loading branch information
pspaczek committed May 6, 2024
1 parent d2decaf commit 8b85a06
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/organisms/UiList/_internal/UiListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ import type {
HTMLTag,
} from '../../../../types';
import type { Icon } from '../../../../types/icon';
import type { ListItemSuffixAttrsProps } from './UiListItemSuffix.vue';
import type { ListItemPrefixAttrsProps } from './UiListItemPrefix.vue';
import type { ListItemSuffixAsTextAttrsProps } from './UiListItemSuffixAsText.vue';
import type { ListItemSuffixAsButtonAttrsProps } from './UiListItemSuffixAsButton.vue';
Expand All @@ -84,21 +86,21 @@ export interface ListItemProps {
*/
icon?: Icon;
/**
* Use this props to control suffix visibility.
* Use this props to control prefix visibility.
*/
hasSuffix?: boolean;
hasPrefix?: boolean;
/**
* Use this props to pass attrs for UIListItemSuffix
* Use this props to pass attrs for UIListItemPrefix
*/
suffixAttrs?: ListItemSuffixAsTextAttrsProps | ListItemSuffixAsButtonAttrsProps;
prefixAttrs?: ListItemPrefixAttrsProps;
/**
* Use this props to control prefix visibility.
* Use this props to control suffix visibility.
*/
hasPrefix?: boolean;
hasSuffix?: boolean;
/**
* Use this props to pass attrs for UIListItemPrefix
* Use this props to pass attrs for UIListItemSuffix
*/
prefixAttrs?: ListItemSuffixAsTextAttrsProps | ListItemSuffixAsButtonAttrsProps;
suffixAttrs?: ListItemSuffixAttrsProps;
/**
* Use this props to pass attrs for list item element
*/
Expand Down

0 comments on commit 8b85a06

Please sign in to comment.