mirror of https://github.com/grafana/grafana
NewPanelEdit: General options categorisation (#23145)
* First bar gauge panel option * Update doc comments * Minor changes * progress * Minor type updates * Fixing typing errors * Fix that TS! * Bring satisfaction to that beast called typescript * Prototype * Remove import * Experimenting with different named categories * Experimenting with category naming * Naming is very hard * merge master * Remove commented code * Fix merge * Categorise panel options into collapsible sections * Remove categories from table panel Co-authored-by: Torkel Ödegaard <torkel@grafana.com>pull/23484/head
parent
278c312d58
commit
76827d2152
@ -0,0 +1,19 @@ |
||||
import React from 'react'; |
||||
import { Label } from './Label'; |
||||
|
||||
export default { |
||||
title: 'Forms/Label', |
||||
component: Label, |
||||
}; |
||||
|
||||
export const simple = () => { |
||||
return <Label description="Opton description">Option name</Label>; |
||||
}; |
||||
|
||||
export const categorised = () => { |
||||
return ( |
||||
<Label category={['Category', 'Nested category']} description="Opton description"> |
||||
Option name |
||||
</Label> |
||||
); |
||||
}; |
Loading…
Reference in new issue