mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 20:09:35 +00:00
feat(search): support expandable variant
This commit is contained in:
parent
b3a63f20f5
commit
4aa11a1e98
5 changed files with 96 additions and 39 deletions
14
types/Search/Search.d.ts
vendored
14
types/Search/Search.d.ts
vendored
|
@ -37,6 +37,18 @@ export interface SearchProps {
|
|||
*/
|
||||
disabled?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to enable the expandable variant
|
||||
* @default false
|
||||
*/
|
||||
expandable?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true to expand the search input
|
||||
* @default false
|
||||
*/
|
||||
expanded?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the value of the search input
|
||||
* @default ""
|
||||
|
@ -95,6 +107,8 @@ export interface SearchProps {
|
|||
export default class Search extends SvelteComponentTyped<
|
||||
SearchProps,
|
||||
{
|
||||
expand: CustomEvent<any>;
|
||||
collapse: CustomEvent<any>;
|
||||
click: WindowEventMap["click"];
|
||||
mouseover: WindowEventMap["mouseover"];
|
||||
mouseenter: WindowEventMap["mouseenter"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue